Skip to content

Percentage
@localizer/format 1.0.1

percent ( value: number | bigint )

  • value - The value to format. Can be a Number or a BigInt. The value represent fraction of a whole, where 1.0 corresponds to 100%.

This formatter ensures locale-aware and consistent representation of percentage values, ideal for displaying percentage data accurately.

Examples: