@universis/number-format
Version:
Universis library for converting number to text
16 lines (15 loc) • 581 B
TypeScript
export declare class NumberFormatter {
/**
* Registers the given local configuration
* @param locale
* @param configuration
*/
static registerLocale(locale: string, configuration: any): void;
/**
* Creates a new instance of NumberFormatter class
*/
static create(): NumberFormatter;
protected formatIntegerPart(number: number, locale: string): string;
protected formatFractionalPart(number: number, locale: string, fractionDigits: number): string;
format(number: number, locale: string, fractionDigits?: number): string;
}