UNPKG

mathjs

Version:

Math.js is an extensive math library for JavaScript and Node.js. It features a flexible expression parser with support for symbolic computation, comes with a large set of built-in functions and constants, and offers an integrated solution to work with dif

9 lines (8 loc) 288 B
import Decimal from 'decimal.js'; export * from './arithmetic.js'; // TODO: this is ugly. Instead, be able to pass your own isBigNumber function to typed? var BigNumber = Decimal.clone(); BigNumber.prototype.isBigNumber = true; export function bignumber(x) { return new BigNumber(x); }