Skip to content

RoundOptions

RoundOptions = object & { fractionDigits?: number; significantDigits?: never; } | { fractionDigits?: never; significantDigits: number; }

Defined in: packages/core/src/number/round.ts:8

How much precision to keep, expressed one way or the other — never both, as they disagree about what the digits are counted from.

optional roundingMethod?: RoundingMethod

Rounding method to use.