tornado-classic-ui/utils/numberUtils.js

7 lines
169 B
JavaScript
Raw Normal View History

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