menu

NumberFormatOptions

import { NumberFormatOptions } from "destack:math";

Number locale formatting options.

language/library/src/math/number.ds:13:100
1export type NumberFormatOptions = { localeMatcher?: "lookup" | "best fit"; style?: "decimal" | "percent" | "currency" | "unit"; numberingSystem?: string; currency?: string; currencyDisplay?: "code" | "symbol" | "narrowSymbol" | "name"; currencySign?: "standard" | "accounting"; unit?: string; unitDisplay?: "short" | "long" | "narrow"; useGrouping?: boolean | "true" | "false" | "min2" | "auto" | "always"; minimumIntegerDigits?: float64; minimumFractionDigits?: float64; maximumFractionDigits?: float64; minimumSignificantDigits?: float64; maximumSignificantDigits?: float64; notation?: "standard" | "scientific" | "engineering" | "compact"; compactDisplay?: "short" | "long"; signDisplay?: "auto" | "never" | "always" | "exceptZero" | "negative"; roundingPriority?: "auto" | "morePrecision" | "lessPrecision"; roundingIncrement?: 1 | 2 | 5 | 10 | 20 | 25 | 50 | 100 | 200 | 250 | 500 | 1000 | 2000 | 2500 | 5000; roundingMode?: "ceil" | "floor" | "expand" | "trunc" | "halfCeil" | "halfFloor" | "halfExpand" | "halfTrunc" | "halfEven"; trailingZeroDisplay?: "auto" | "stripIfInteger" }