classic-ui/utils/numberUtils.js

7 lines
169 B
JavaScript
Raw Permalink Normal View History

2022-04-22 06:05:56 +03: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()
}