classic-ui-dev/utils/numberUtils.js

7 lines
169 B
JavaScript
Raw Normal View History

2022-04-21 23:05:56 -04: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()
}