Your Airkit journey starts here

CURRENCY

Represents a unit of currency, including the amount and currency code.

Declaration

CURRENCY(amount, code, precision) -> currency
CURRENCY(amount, code) -> currency
CURRENCY(amount) -> currency

Parameters

amount
number -The amount represented in its smallest unit
code
string -The 3-digit currency code (ie. USD)
precision
number -The precision the amount will represented in, ie. if the precision 3 and amount is 10454, the represented currency would be $10.454

Return Values

currency
currency -The represented currency of the amount and code