classic-ui/utils/numberUtils.js

7 lines
169 B
JavaScript
Raw Permalink Normal View History

2022-04-22 13:05:56 +10:00
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()
}