UNPKG

@types/number-to-words

Version:
17 lines (13 loc) 539 B
export as namespace numberToWords; /** * Converts an integer into a string with an ordinal postfix. If number is decimal, the decimals will be removed. */ export function toOrdinal(number: string | number): string; /** * Converts an integer into words. If number is decimal, the decimals will be removed. */ export function toWords(number: string | number): string; /** * Converts a number into ordinal words. If number is decimal, the decimals will be removed. */ export function toWordsOrdinal(number: string | number): string;