mirror of
https://github.com/MikeMcl/decimal.js.git
synced 2024-10-27 20:34:12 +00:00
v5.0.5
This commit is contained in:
parent
1a1a0ace51
commit
6effe2db27
18
CHANGELOG.md
18
CHANGELOG.md
@ -1,18 +1,22 @@
|
|||||||
|
####5.0.5
|
||||||
|
* 20/02/2015
|
||||||
|
* Bugfix: #26 wrong precision applied.
|
||||||
|
|
||||||
####5.0.4
|
####5.0.4
|
||||||
* 14/02/2015
|
* 14/02/2015
|
||||||
* Bugfix: #26 clone.
|
* Bugfix: #26 clone.
|
||||||
|
|
||||||
####5.0.3
|
####5.0.3
|
||||||
* 06/02/2015
|
* 06/02/2015
|
||||||
* Refactor tests.
|
* Refactor tests.
|
||||||
|
|
||||||
####5.0.2
|
####5.0.2
|
||||||
* 05/02/2015
|
* 05/02/2015
|
||||||
* Added immutability tests.
|
* Added immutability tests.
|
||||||
* Minor *decimal.js* clean-up.
|
* Minor *decimal.js* clean-up.
|
||||||
|
|
||||||
####5.0.1
|
####5.0.1
|
||||||
* 28/01/2015
|
* 28/01/2015
|
||||||
* Bugfix: #20 cos mutates value.
|
* Bugfix: #20 cos mutates value.
|
||||||
* Add pi info to docs.
|
* Add pi info to docs.
|
||||||
|
|
||||||
@ -22,18 +26,18 @@
|
|||||||
* Added most of JavaScript's `Math` object methods as Decimal methods.
|
* Added most of JavaScript's `Math` object methods as Decimal methods.
|
||||||
* Added `toBinary`, `toHexadecimal` and `toOctal` methods.
|
* Added `toBinary`, `toHexadecimal` and `toOctal` methods.
|
||||||
* Added `isPositive` method.
|
* Added `isPositive` method.
|
||||||
* Removed the 15 significant digit limit for numbers.
|
* Removed the 15 significant digit limit for numbers.
|
||||||
* `toFraction` now returns an array of two Decimals, not two strings.
|
* `toFraction` now returns an array of two Decimals, not two strings.
|
||||||
* String values containing whitespace or a plus sign are no longer accepted.
|
* String values containing whitespace or a plus sign are no longer accepted.
|
||||||
* `valueOf` now returns `'-0'` for minus zero.
|
* `valueOf` now returns `'-0'` for minus zero.
|
||||||
* `comparedTo` now returns `NaN` not `null` for comparisons with `NaN`.
|
* `comparedTo` now returns `NaN` not `null` for comparisons with `NaN`.
|
||||||
* `Decimal.max` and `Decimal.min` no longer accept an array.
|
* `Decimal.max` and `Decimal.min` no longer accept an array.
|
||||||
* The Decimal constructor and `toString` no longer accept a base argument.
|
* The Decimal constructor and `toString` no longer accept a base argument.
|
||||||
* Binary, hexadecimal and octal prefixes are now recognised for string values.
|
* Binary, hexadecimal and octal prefixes are now recognised for string values.
|
||||||
* Removed `Decimal.errors` configuration property.
|
* Removed `Decimal.errors` configuration property.
|
||||||
* Removed `toFormat` method.
|
* Removed `toFormat` method.
|
||||||
* Removed `Decimal.ONE`.
|
* Removed `Decimal.ONE`.
|
||||||
* Renamed `exponential` method to `naturalExponential`.
|
* Renamed `exponential` method to `naturalExponential`.
|
||||||
* Renamed `Decimal.constructor` method to `Decimal.clone`.
|
* Renamed `Decimal.constructor` method to `Decimal.clone`.
|
||||||
* Simplified error handling and amended error messages.
|
* Simplified error handling and amended error messages.
|
||||||
* Refactored the test suite.
|
* Refactored the test suite.
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
/*! decimal.js v5.0.4 https://github.com/MikeMcl/decimal.js/LICENCE */
|
/*! decimal.js v5.0.5 https://github.com/MikeMcl/decimal.js/LICENCE */
|
||||||
;(function (globalScope) {
|
;(function (globalScope) {
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* decimal.js v5.0.4
|
* decimal.js v5.0.5
|
||||||
* An arbitrary-precision Decimal type for JavaScript.
|
* An arbitrary-precision Decimal type for JavaScript.
|
||||||
* https://github.com/MikeMcl/decimal.js
|
* https://github.com/MikeMcl/decimal.js
|
||||||
* Copyright (c) 2016 Michael Mclaughlin <M8ch88l@gmail.com>
|
* Copyright (c) 2016 Michael Mclaughlin <M8ch88l@gmail.com>
|
||||||
|
6
decimal.min.js
vendored
6
decimal.min.js
vendored
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "decimal.js",
|
"name": "decimal.js",
|
||||||
"description": "An arbitrary-precision Decimal type for JavaScript.",
|
"description": "An arbitrary-precision Decimal type for JavaScript.",
|
||||||
"version": "5.0.4",
|
"version": "5.0.5",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"arbitrary",
|
"arbitrary",
|
||||||
"precision",
|
"precision",
|
||||||
@ -28,6 +28,6 @@
|
|||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "node ./test/test.js",
|
"test": "node ./test/test.js",
|
||||||
"build": "uglifyjs decimal.js --source-map doc/decimal.js.map -c -m -o decimal.min.js --preamble \"/* decimal.js v5.0.4 https://github.com/MikeMcl/decimal.js/LICENCE */\""
|
"build": "uglifyjs decimal.js --source-map doc/decimal.js.map -c -m -o decimal.min.js --preamble \"/* decimal.js v5.0.5 https://github.com/MikeMcl/decimal.js/LICENCE */\""
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user