bignumber.js has support for a series of mathematical operations, all natively supported with JavaScript, but when computed with this library providing a higher degree of accuracy.
All calculations with bignumber.js are quite fast and thanks to its core written in ECMAScript 3, the library can be used on all sorts of ancient devices and browsers.
Documentation is included with the library, to get developers started on their own projects.
bignumber.js works with client-side (browsers) and server-side (Node.js) environments.
A lighter version of bignumber.js with lesser methods is also available as big.js.
What is new in this release:
- Add dividedToIntegerBy, isInteger and toFormat methods.
- Remove the following short-forms: isF, isZ, toE, toF, toFr, toN, toP, toS.
- Store a BigNumber's coefficient in base 1e14, rather than base 10.
- Add fast path for integers to BigNumber constructor.
- Incorporate the library into the online documentation.
What is new in version 2.0.7:
- Add dividedToIntegerBy, isInteger and toFormat methods.
- Remove the following short-forms: isF, isZ, toE, toF, toFr, toN, toP, toS.
- Store a BigNumber's coefficient in base 1e14, rather than base 10.
- Add fast path for integers to BigNumber constructor.
- Incorporate the library into the online documentation.
What is new in version 2.0.3:
- Add dividedToIntegerBy, isInteger and toFormat methods.
- Remove the following short-forms: isF, isZ, toE, toF, toFr, toN, toP, toS.
- Store a BigNumber's coefficient in base 1e14, rather than base 10.
- Add fast path for integers to BigNumber constructor.
- Incorporate the library into the online documentation.
What is new in version 1.5.0:
- Added toJSON and decimalPlaces methods.
What is new in version 1.4.1:
- Amended README file.
What is new in version 1.3.0:
- Maximum radix to 64.
What is new in version 1.2.1:
- Bugfix:
- Sign of zero when x < 0 and x + (-x) = 0.
What is new in version 1.2.0:
- Throw Error objects for stack.
What is new in version 1.1.1:
- Shows original value in constructor error message.
What is new in version 1.1.0:
- Allow numbers with trailing radix point.
What is new in version 1.0.1:
- Corrected a couple of spelling mistakes in comments.
- Very minor regex tweaks.
What is new in version 1.0.0:
- First version.
Requirements:
- JavaScript enabled on client side
- Node.js
評論沒有發現