polish-number-to-words
Version:
Spell numbers using words in Polish | Napisz liczbę słownie po polsku
20 lines (19 loc) • 650 B
TypeScript
/**
* Options for integer-to-words conversion in Polish.
*/
export interface IntegerToWordsOptions {
/**
* Whether to explicitly include "jeden tysiąc" for 1000.
* If false, uses just "tysiąc".
*/
explicitSingleThousand?: boolean;
}
/**
* Converts an integer into its Polish word form.
* Handles numbers from negative billions to large scale names like "kwintylion".
*
* @param num The integer to convert.
* @param options Optional formatting behavior.
* @returns The number written out in Polish.
*/
export declare function integerToWordsPL(num: number, options?: IntegerToWordsOptions): string;