Skip to content
Sheetwrite

Sheetwrite / Documentation

formatNumber@sheetwrite/core

Deterministic Excel-style number/date formatter.

Deterministic Excel-style number/date formatter. Supports explicit locale separators, percent/scientific notation, UTC date/time tokens, four-section positive/negative/zero/text codes, quoted literals, and backslash escapes.

Declaration

function formatNumber(
value: number | string,
code?: string,
locale?: string,
): string