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

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