Skip to content

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

LocaleLocalized value
en-US  American English146%
fr-FR  French (France)146 %
de-DE  German (Germany)146 %
fi-FI  Finnish (Finland)146 %
sv-FI  Swedish (Finland)146 %
ko-KR  Korean (South Korea)146%
hi-IN  Hindi (India)146%

See also