Decimaljs

Latest version: v1.0.4

Safety actively analyzes 638346 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 6 of 8

5.0.2

* 05/02/2016
* Added immutability tests
* Minor *decimal.js* clean-up

5.0.1

* 28/01/2016
* Bugfix: 20 cos mutates value
* Add pi info to docs

5.0.0

* 25/01/2016
* Added trigonometric functions and `cubeRoot` method
* Added most of JavaScript's `Math` object methods as Decimal methods
* Added `toBinary`, `toHexadecimal` and `toOctal` methods
* Added `isPositive` method
* Removed the 15 significant digit limit for numbers
* `toFraction` now returns an array of two Decimals, not two strings
* String values containing whitespace or a plus sign are no longer accepted
* `valueOf` now returns `'-0'` for minus zero
* `comparedTo` now returns `NaN` not `null` for comparisons with `NaN`
* `Decimal.max` and `Decimal.min` no longer accept an array
* The Decimal constructor and `toString` no longer accept a base argument
* Binary, hexadecimal and octal prefixes are now recognised for string values
* Removed `Decimal.errors` configuration property
* Removed `toFormat` method
* Removed `Decimal.ONE`
* Renamed `exponential` method to `naturalExponential`
* Renamed `Decimal.constructor` method to `Decimal.clone`
* Simplified error handling and amended error messages
* Refactored the test suite
* `Decimal.crypto` is now `undefined` by default, and the `crypto` object will be used if available
* Major internal refactoring
* Removed *bower.json*

4.0.2

* 20/02/2015 Add bower.json. Add source map. Amend travis CI. Amend doc/comments

4.0.1

* 11/12/2014 Assign correct constructor when duplicating a Decimal

4.0.0

* 10/11/2014 `toFormat` amended to use `Decimal.format` object for more flexible configuration

Page 6 of 8

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.