UNPKG

bignum-dec

Version:
9 lines (6 loc) 232 B
import { equal } from 'assert'; import dec from './index'; it('should bignumDec', () => equal(dec('420000000000000000000000'), '419999999999999999999999')); it('should bignumDec invalid input', () => equal(dec(), undefined));