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 month ago
Edit Page
Share:
2022 © ARK.io | All Rights Reserved An ARK.io Product