extenso
Version:
Uma biblioteca avançada para escrever números por extenso (em português).
12 lines (11 loc) • 522 B
TypeScript
import type { ExtensoScale } from '../types';
/**
* Formats a number using compact Portuguese scale abbreviations.
* Values below one thousand are returned without a scale suffix.
* @param integer - Absolute integer part of the number
* @param decimal - Decimal part of the number
* @param scale - Scale used to select the abbreviation
* @returns The number in compact notation
*/
declare const writeAbbreviated: (integer: string, decimal?: string, scale?: ExtensoScale) => string;
export default writeAbbreviated;