Skip to content

Relative decimal
@localizer/format 1.0.1

relativeDecimal ( value: number | bigint , reference: number | bigint )

  • value - The value to format.
  • reference - The reference value.

Both arguments can be either a Number or a BigInt.

This formatter calculates the difference between a value and a reference and formats it in a locale-aware manner.

Examples: