Skip to content

decimal
@localizer/format 1.1.1

The decimal is used to format numeric values into a human-readable string representation. It ensures proper formatting for large numbers, including thousands separators and decimal points, making it suitable for displaying monetary values or other numerical data.

Usage

typescript
import { 
decimal
} from '@localizer/format';
const
result
=
decimal
(1234567.89);

Demo

LocaleLocalized value
en-US  American English1,234,567.89
fr-FR  French (France)1 234 567,89
de-DE  German (Germany)1.234.567,89
fi-FI  Finnish (Finland)1 234 567,89
sv-FI  Swedish (Finland)1 234 567,89
ko-KR  Korean (South Korea)1,234,567.89
hi-IN  Hindi (India)12,34,567.89

See also