index.js 288 B

123456789
  1. import Decimal from 'decimal.js';
  2. export * from './arithmetic.js';
  3. // TODO: this is ugly. Instead, be able to pass your own isBigNumber function to typed?
  4. var BigNumber = Decimal.clone();
  5. BigNumber.prototype.isBigNumber = true;
  6. export function bignumber(x) {
  7. return new BigNumber(x);
  8. }