Comments (2)
Thanks for the suggestion. Of course I need to support ESM, as it became stable. I will do this for the next release.
from bigdecimal.js.
This is done. Make sure to try the 1.1.0 version with a node version that supports es modules. (12.22 or above)
import {Big, MC} from 'bigdecimal.js';
console.log(Big(15).add(Big(20), MC(1)).toString());
outputs:
4E+1
from bigdecimal.js.
Related Issues (9)
- No identifiers allowed directly after numeric literal HOT 13
- Add markdown link checker to avoid broken links HOT 4
- Fix doc
- Big(1).divideWithMathContext(Big(3), new MC(0, RoundingMode.CEILING)).numberValue() HOT 2
- Extends API to support compareTo aliases (===, >, >=, etc...) HOT 5
- Make `add`, `subtract`, `multiply`, `divide` & `compareTo` handle `any` HOT 2
- Create a bigdecimal-light.js HOT 4
- "Can't find variable: BigInt" error thrown on Safari 13 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bigdecimal.js.