decimalRange @localizer/format 1.1.1
The decimalRange
is used to format and display a range of numbers, such as a start and end value. It ensures the range is presented in a clear and readable format, making it suitable for various applications like financial data, reports, or user interfaces.
Usage
typescript
import { decimalRange } from '@localizer/format';
const result = decimalRange(1000, 2000);
Demo
Locale | Localized value |
---|---|
en-US | 1,000–2,000 |
fr-FR | 1 000–2 000 |
de-DE | 1.000–2.000 |
fi-FI | 1 000–2 000 |
sv-FI | 1 000‒2 000 |
ko-KR | 1,000~2,000 |
hi-IN | 1,000–2,000 |