classic-ui-dev/utils/numberUtils.js
Danil Kovtonyuk 44f31f8b9f
init
2022-04-22 13:14:19 +10: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()
}