classic-ui/utils/numberUtils.js
FreezyEx b32527e057 Revert "minor fixes"
This reverts commit 7f8f7c2aa1.
2022-10-13 16:03:54 +02:00

7 lines
169 B
JavaScript

import { BigNumber as BN } from 'bignumber.js'
// return the number of decimal places of the value
export function decimalPlaces(value) {
return new BN(value).dp()
}