← All pipes
Numbers

numberRange

Finite ordered endpoints with Intl number options including currency/unit.

Use it in your component

Standalone component
import { Component } from '@angular/core';
import { NumberRangePipe } from 'extra-pipe';

@Component({
  standalone: true,
  imports: [NumberRangePipe],
  template: `{{ 10 | numberRange: 25: {style: 'currency', currency: 'EUR'}: 'fr' }}`,
})
export class ExampleComponent {

}

Template
{{ 10 | numberRange: 25: {style: 'currency', currency: 'EUR'}: 'fr' }}

Try it live.

The output below runs the packed library. Edit data, not code.

Use double quotes for text, or a number, array, object or null.
Ordered parameters: end, options. Locale is controlled separately.
Applied to the live output.
Live template data
readonly value = 10;
readonly parameter0 = 25;
readonly parameter1 = {"style":"currency","currency":"EUR"} as const;
{{ value | numberRange: parameter0: parameter1: "en-US" }}

Rendered output

€10.00 – €25.00