UNPKG

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