Skip to content

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

LocaleLocalized value
en-US  American English1,000–2,000
fr-FR  French (France)1 000–2 000
de-DE  German (Germany)1.000–2.000
fi-FI  Finnish (Finland)1 000–2 000
sv-FI  Swedish (Finland)1 000‒2 000
ko-KR  Korean (South Korea)1,000~2,000
hi-IN  Hindi (India)1,000–2,000

See also