percent @localizer/format 1.1.1
This formatter is used to convert numerical ratios into percentage representations. For example, a value of 1.0
is equivalent to 100%
, making it easy to display ratios in a human-readable percentage format.
Usage
typescript
import { percent } from '@localizer/format';
const result = percent(1.46);
The argument passed to this formatter represents a ratio in its unscaled form, where a value of 1.0
corresponds to 100%
.
Demo
Locale | Localized value |
---|---|
en-US | 146% |
fr-FR | 146 % |
de-DE | 146 % |
fi-FI | 146 % |
sv-FI | 146 % |
ko-KR | 146% |
hi-IN | 146% |