Home | Platform SDK

Numeral

Importing the Numeral class

import { Numeral } from "@arkecosystem/platform-sdk-intl";

Format the given number

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

Format the given number with a currency symbol as suffix

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

Format the given number with a unit as suffix

Numeral.make("en").formatAsUnit(5000, "kilobyte")

2020 © ARK.io | All rights reserved | An ARK.io Product