mirror of
https://github.com/josdejong/mathjs.git
synced 2026-01-25 15:07:57 +00:00
Merge pull request #1167 from weinshel/decimaljs-import
Change decimal.js import
This commit is contained in:
commit
4e38cf8d5f
@ -1,5 +1,6 @@
|
||||
'use strict'
|
||||
const Decimal = require('decimal.js/decimal.js') // make sure to pick the es5 version
|
||||
|
||||
import Decimal from 'decimal.js'
|
||||
|
||||
function factory (type, config, load, typed, math) {
|
||||
const BigNumber = Decimal.clone({precision: config.precision})
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user