(n, precision = 0)
| 1295 | return new BigNumber(out - 1) |
| 1296 | } |
| 1297 | round(n, precision = 0) { |
| 1298 | const tenPow = this.pow(10, precision) |
| 1299 | return new BigNumber(n).times(tenPow).integerValue(BigNumber.ROUND_HALF_CEIL).div(tenPow) |
| 1300 | } |
| 1301 | rand(n = 1, crypto = false) { |
| 1302 | const BN = BigNumber.clone({ CRYPTO: crypto }) |
| 1303 | let out = [] |
no test coverage detected