Deterministic Excel-style number/date formatter. Supports explicit locale
separators, percent/scientific notation, UTC date/time tokens, four-section
positive/negative/zero/text codes, fractions (# ?/?, # ??/16), quoted
literals, and backslash escapes. General formats exactly like an omitted
code, and so does the Text format @ for a number.
Declaration
function formatNumber( value: number | string, format?: string, locale?: string,): stringParameters
value: number | stringrequiredThe number to format; a string is placed into the code's text section.
format?: stringoptionalExcel number-format code, such as #,##0.00 or yyyy-mm-dd; when it is omitted, the value is formatted as with General.
locale?: stringoptionalBCP 47 locale for the decimal and group separators; defaults to en-US.
Returns
stringThe value as Excel would show it with that code.
Referenced by
Public exports naming formatNumber
KeyboardAction@sheetwrite/core