- Preparing search index...
- The search index is not available
cardstack
Function roundAmountToNativeCurrencyDecimals
- roundAmountToNativeCurrencyDecimals(value: Value, currency: string, roundingMode?: 0): string
-
Parameters
-
value: Value
-
currency: string
-
roundingMode: 0 = BigNumber.ROUND_UP
Returns string
Rounds
value
to the number of decimals specified by the native currency (seecurrencies.ts
)