digit-to-words-nepali
Version:
A comprehensive TypeScript library for converting numbers to words in English and Nepali languages. Supports numbers up to 10^39 (Adanta Singhar), currency formatting, decimal handling with individual digit pronunciation, and BigInt. Zero dependencies, fu
38 lines (37 loc) • 1.1 kB
TypeScript
import { NumberScale } from '../types/mappingTypes';
/**
* SCALE_VALUES
* Maps scale names to their BigInt values for Nepali/Indian number system.
*/
declare const SCALE_VALUES: {
readonly MAHA_SINGHAR: bigint;
readonly SINGHAR: bigint;
readonly SHISHANT: bigint;
readonly MAHA_ANT: bigint;
readonly ANT: bigint;
readonly PARAARDHA: bigint;
readonly MADH: bigint;
readonly JALD: bigint;
readonly ANK: bigint;
readonly UDPADH: bigint;
readonly SHANKHA: bigint;
readonly PADMA: bigint;
readonly NEEL: bigint;
readonly KHARAB: bigint;
readonly ARAB: bigint;
readonly CRORE: bigint;
readonly LAKH: bigint;
readonly THOUSAND: bigint;
readonly HUNDRED: bigint;
};
/**
* baseScaleMappings
* List of all supported number scales, sorted descending by value.
*/
export declare const baseScaleMappings: NumberScale[];
/**
* Nepali and English scale mappings (identical for this system).
*/
export declare const nepaliScaleMappings: NumberScale[];
export declare const englishScaleMappings: NumberScale[];
export { SCALE_VALUES };