amount-in-words
Version:
Convert amount in words
20 lines (19 loc) • 479 B
TypeScript
export declare enum CountryCodes {
IND = "IND",
USA = "USA",
GBR = "GBR"
}
export declare class AmountToWords {
private first;
private tens;
private numSys;
private curCodes;
toWords: (amount: string | number, countryCode?: string) => string;
private getCurrencyWhole;
private getCurrencyChange;
private getCurrencySymbol;
private getNumSys;
private convert;
private convertInUS;
private getUnits;
}