Numeral

Importing the Numeral class

1import { Numeral } from "@ardenthq/sdk-intl";

Format the given number

1Numeral.make("en").format(5000)

Format the given number with a currency symbol as suffix

1Numeral.make("en").formatAsCurrency(5000, "EUR")

Format the given number with a unit as suffix

1Numeral.make("en").formatAsUnit(5000, "kilobyte")
Last updated 1 year ago
Edit Page
Share: