1
0
mirror of https://github.com/MikeMcl/decimal.js.git synced 2024-10-27 20:34:12 +00:00
This commit is contained in:
Michael Mclaughlin 2016-02-18 20:15:27 +00:00
parent 50250d8c83
commit b060c29184
5 changed files with 13 additions and 10 deletions

View File

@ -204,6 +204,9 @@ See LICENCE.
## Change Log ## Change Log
####4.0.4
* 18/02/2016 Prevent browserify crypto require.
####4.0.3 ####4.0.3
* 2/10/2015 Internal round function bugfix. * 2/10/2015 Internal round function bugfix.

View File

@ -1,7 +1,7 @@
{ {
"name": "decimal.js", "name": "decimal.js",
"main": "decimal.js", "main": "decimal.js",
"version": "4.0.3", "version": "4.0.4",
"homepage": "https://github.com/MikeMcl/decimal.js", "homepage": "https://github.com/MikeMcl/decimal.js",
"authors": [ "authors": [
"Michael Mclaughlin <M8ch88l@gmail.com>" "Michael Mclaughlin <M8ch88l@gmail.com>"

View File

@ -1,13 +1,13 @@
/*! decimal.js v4.0.3 https://github.com/MikeMcl/decimal.js/LICENCE */ /*! decimal.js v4.0.4 https://github.com/MikeMcl/decimal.js/LICENCE */
;(function (global) { ;(function (global) {
'use strict'; 'use strict';
/* /*
* decimal.js v4.0.3 * decimal.js v4.0.4
* 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) 2014 Michael Mclaughlin <M8ch88l@gmail.com> * Copyright (c) 2016 Michael Mclaughlin <M8ch88l@gmail.com>
* MIT Expat Licence * MIT Expat Licence
*/ */
@ -1503,15 +1503,15 @@
* ECMAScript compliant. * ECMAScript compliant.
* *
* x is any value, including NaN. * x is any value, including NaN.
* n is any number, including ±Infinity unless stated. * n is any number, including <EFBFBD>Infinity unless stated.
* *
* pow( x, NaN ) = NaN * pow( x, NaN ) = NaN
* pow( x, ±0 ) = 1 * pow( x, <EFBFBD>0 ) = 1
* pow( NaN, nonzero ) = NaN * pow( NaN, nonzero ) = NaN
* pow( abs(n) > 1, +Infinity ) = +Infinity * pow( abs(n) > 1, +Infinity ) = +Infinity
* pow( abs(n) > 1, -Infinity ) = +0 * pow( abs(n) > 1, -Infinity ) = +0
* pow( abs(n) == 1, ±Infinity ) = NaN * pow( abs(n) == 1, <EFBFBD>Infinity ) = NaN
* pow( abs(n) < 1, +Infinity ) = +0 * pow( abs(n) < 1, +Infinity ) = +0
* pow( abs(n) < 1, -Infinity ) = +Infinity * pow( abs(n) < 1, -Infinity ) = +Infinity
* pow( +Infinity, n > 0 ) = +Infinity * pow( +Infinity, n > 0 ) = +Infinity

2
decimal.min.js vendored

File diff suppressed because one or more lines are too long

View File

@ -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": "4.0.3", "version": "4.0.4",
"keywords": [ "keywords": [
"arbitrary", "arbitrary",
"precision", "precision",
@ -31,6 +31,6 @@
"license": "MIT", "license": "MIT",
"scripts": { "scripts": {
"test": "node ./test/every-test.js", "test": "node ./test/every-test.js",
"build": "uglifyjs decimal.js --source-map doc/decimal.js.map -c -m -o decimal.min.js --preamble \"/* decimal.js v4.0.3 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 v4.0.4 https://github.com/MikeMcl/decimal.js/LICENCE */\""
} }
} }