- 25/06/2021
- Remove minified versions. Refresh README.
- 22/06/2021
- Support underscores as separators.
- #101 Add
Decimal.clamp
method. - #161 Fix Decimal instances deemed plain objects.
- #100 Add
Decimal.sum
method. - #146
Symbol.for
toSymbol['for']
for IE8. - #132 Fix possible infinite loop when
minE
is very low. - #180 Accept Decimals of different origin.
- Update Typescript definitions.
- Update minification examples in README.
- Add minified versions for both decimal.js and decimal.mjs.
- Add files field to package.json, and remove build script.
- 28/09/2020
- Correct
sqrt
initial estimate.
- 08/05/2019
- #128 Workaround V8
Math.pow
change. - #93 Accept
+
prefix when parsing string values. - #129 Fix typo.
- 27/02/2019
- Check
Symbol
properly.
- 26/02/2019
- #122 Add custom
util.inspect()
function. - Add
Symbol.toStringTag
. - #121 Constructor: add range check for arguments of type number and Decimal.
- Remove premable from uglifyjs build script.
- Move decimal.min.js.map to root directory.
- 13/12/2018
- #114 Remove soureMappingURL from decimal.min.js.
- Remove bower.json.
- 24/05/2018
- Add
browser
field to package.json.
- 10/03/2018
- #88
toNearest
to return the nearest multiple in the direction of the rounding mode. - #82 #91
const
tovar
. - Add trigonometric precision limit explanantion to documentation.
- Put global ts definitions in separate file (see bignumber.js #143).
- 15/12/2017
- #80 Typings: correct return type.
- 14/12/2017
- #78 Typings: remove
toFormat
.
- 10/12/2017
- Correct typings:
toFraction
returnsDecimal[]
. - Type-checking: add
Decimal.isDecimal
method. - Enable configuration reset with
defaults: true
. - Add named export, Decimal, to decimal.mjs.
- 03/12/2017
- Remove typo.
- 03/12/2017
- Use TypeScript declarations outside modules.
- 25/11/2017
- Add TypeScript typings.
- 26/09/2017
- Rename decimal.es6.js to decimal.mjs.
- Amend .travis.yml.
- 09/09/2017
- Update docs regarding
global.crypto
. - Fix
import
issues.
- 27/06/2017
- Bugfix: #58
pow
sometimes throws when result isInfinity
.
- 25/06/2017
- Bugfix: #57 Powers of -1 for integers over
Number.MAX_SAFE_INTEGER
.
- 04/05/2017
- Fix README badges.
- 09/04/2017
- Add decimal.es6.js
- 05/04/2017
Decimal.default
toDecimal['default']
IE8 issue
- 10/01/2017
- Remove duplicated for-loop
- Minor refactoring
- 09/11/2016
- Support ES6 imports.
- 09/11/2016
- Remove
require('crypto')
- leave it to the user - Default
Decimal.crypto
tofalse
- Add
Decimal.set
asDecimal.config
alias
- 30/06/2016
- Removed base-88 serialization format
- Amended
toJSON
and removedDecimal.fromJSON
accordingly
- 09/03/2016
- Add newline to single test results
- Correct year
- 29/02/2016
- Add decimal.js-light link
- Remove outdated example from docs
- 22/02/2016
- Add bower.json
- 20/02/2016
- Bugfix: #26 wrong precision applied
- 14/02/2016
- Bugfix: #26 clone
- 06/02/2016
- Refactor tests
- 05/02/2016
- Added immutability tests
- Minor decimal.js clean-up
- 28/01/2016
- Bugfix: #20 cos mutates value
- Add pi info to docs
- 25/01/2016
- Added trigonometric functions and
cubeRoot
method - Added most of JavaScript's
Math
object methods as Decimal methods - Added
toBinary
,toHexadecimal
andtoOctal
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 zerocomparedTo
now returnsNaN
notnull
for comparisons withNaN
Decimal.max
andDecimal.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 tonaturalExponential
- Renamed
Decimal.constructor
method toDecimal.clone
- Simplified error handling and amended error messages
- Refactored the test suite
Decimal.crypto
is nowundefined
by default, and thecrypto
object will be used if available- Major internal refactoring
- Removed bower.json
- 20/02/2015 Add bower.json. Add source map. Amend travis CI. Amend doc/comments
- 11/12/2014 Assign correct constructor when duplicating a Decimal
- 10/11/2014
toFormat
amended to useDecimal.format
object for more flexible configuration
- 8/06/2014 Surround crypto require in try catch. See issue #5
- 4/06/2014
random
simplified. Major internal changes mean the properties of a Decimal must now be considered read-only
- 4/06/2014 Amend UMD
- 8/05/2014 Fix NaN toNumber
- 30/04/2014 Correct doc links
- 10/04/2014 Update npmignore
- 10/04/2014 Add
toSignificantDigits
- Remove
toInteger
- No arguments to
ceil
,floor
,round
andtrunc
- 07/04/2014 Minor documentation clean-up
- 02/04/2014 Initial release