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, and BigInt. Zero dependencies, fully tested.
12 lines (11 loc) • 650 B
TypeScript
import { ConverterConfig } from '../types/converterTypes';
export declare function isValidNumber(num: number | string | bigint): boolean;
export declare function splitNumber(num: number | string | bigint): {
integer: bigint;
decimal?: string;
};
export declare function roundDecimal(decimal: string): string;
export declare function validateDecimal(decimal: string | undefined): boolean;
export declare function normalizeDecimal(decimal: string | undefined): string | undefined;
export declare function validateCustomMappings(config: Required<ConverterConfig>): boolean;
export declare function getScaleValue(scale: number | string): bigint;