@technobuddha/library
Version:
A large library of useful functions
16 lines (15 loc) • 383 B
TypeScript
/**
* Get a short description of a number
*
* @remarks this is a shortcut to calling cardinal with options \{groups: 1, digits: true\}
*
* @example 1000000 "1 million"
* @example 101323847382459 "101 trillion"
*
* @param input - number to convert
* @returns number as text
*
* @group Math
* @category Numbers
*/
export declare function summarize(input: number): string;