slanted-gamedev-toolz
Version:
A slanted mix of tools for your brilliant ideas in game design.
10 lines • 557 B
TypeScript
/**
* Formats a number with comma separators and optional suffixes for large values.
*
* @param inputMoney - The number to format.
* @param showNegatives - Whether to show a "-" sign for negative numbers (default: false).
* @param showSuffix - Whether to append a magnitude suffix like "(M)", "(B)", etc. (default: true).
* @returns The formatted number as a string, e.g., "1,234(M)".
*/
export declare function numberWithCommas(inputMoney: number, showNegatives?: boolean, showSuffix?: boolean): string;
//# sourceMappingURL=numberWithComma.d.ts.map