Skip to content

relativeDecimal
@localizer/format 1.1.1

Calculates and formats the relative change between two unitless values, expressed as a percentage or ratio.

Usage

typescript
import { 
relativeDecimal
} from '@localizer/format';
const
result
=
relativeDecimal
(35, 50);

Represents the change from an initial reference value (first argument) to an updated value (second argument).

Demo

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

See also