decimal @localizer/format 1.1.3
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
| Locale | Localized value |
|---|---|
en-US | 1,234,567.89 |
fr-FR | 1 234 567,89 |
de-DE | 1.234.567,89 |
fi-FI | 1 234 567,89 |
sv-FI | 1 234 567,89 |
ko-KR | 1,234,567.89 |
hi-IN | 12,34,567.89 |