1
0
mirror of https://github.com/MikeMcl/decimal.js.git synced 2024-10-27 20:34:12 +00:00
Commit Graph

24 Commits

Author SHA1 Message Date
Frank Stokes
6ce9d30c0f Implement Symbol.toPrimitive 2021-10-08 11:23:06 +02:00
Michael Mclaughlin
220f11c498 v10.3.0 2021-06-22 19:20:14 +01:00
Michael Mclaughlin
d102ead7af #101 Add clamp method 2021-06-22 12:15:13 +01:00
Michael Mclaughlin
66a21ee9d1 #100 Add Decimal.sum method 2021-06-22 10:13:28 +01:00
Michael Mclaughlin
3f9eeb0897 #128 Accept + prefix 2019-05-08 17:05:12 +01:00
Lucia Velasco
caed629d5a Code Review Changes: Updates test file and void check
Also removes superfluous line that the tests now cater for.
2018-03-05 09:10:46 +00:00
Lucia Velasco
2c3198d555 Fixes pre-existing test to successfully round up 2018-03-02 22:11:22 +00:00
Lucia Velasco
caaba6d513 Adds toNearest tests for numbers to round that are less-than-even
This will test numbers that are less than half the first argument (y) of the toNearest function.
If the y value is ten, the decimal value on which toNearest is tested will be a multiplication of ten plus less than 5.
2018-03-02 21:55:54 +00:00
Michael Mclaughlin
fd668fea70 Add Decimal.isDecimal and config reset 2017-12-09 22:05:28 +00:00
Michael Mclaughlin
22ac9377c6 Bugfix: #58 pow sometimes throws when result is Infinity 2017-06-27 22:07:37 +01:00
Michael Mclaughlin
e48bddf45a v7.0.0 2016-11-09 17:08:38 +00:00
Michael Mclaughlin
fb37ca6bde v6.0.0 2016-06-30 19:27:50 +01:00
Michael Mclaughlin
ff621c1e35 Add newline to single test results 2016-03-09 22:54:34 +00:00
Michael Mclaughlin
c512eb9a5a Bugfix: #26 clone 2016-02-14 21:13:04 +00:00
Michael Mclaughlin
caad23d669 refactor tests 2016-02-06 17:51:29 +00:00
Michael Mclaughlin
c2c4480881 Add immutability tests 2016-02-04 23:52:10 +00:00
Jayson Harshbarger
ec0955c28e Mutation tests 2016-01-29 11:50:16 +09:00
Jayson Harshbarger
08263d4305 Fix for issue #20 2016-01-28 22:11:59 +09:00
Michael Mclaughlin
8a6f8fe412 v5.0.0 2016-01-25 00:11:32 +00:00
Michael Mclaughlin
8d7a9969de v4.0.0 toFormat amended 2014-11-10 16:00:14 +00:00
Michael Mclaughlin
e02587a173 v3.0.0 2014-06-04 23:59:07 +01:00
Michael Mclaughlin
800cef4c1f Fix NaN toNumber 2014-05-08 19:27:25 +01:00
Michael Mclaughlin
b141f3480d v2.0.0
Avoid potential confusion over the round method: ceil, floor, round and
trunc no longer accept arguments and so they match their JS Math object
equivalents. Removed toInteger as round now handles rounding to integer. Added
toSignificantDigits as round no longer rounds to precision. Updated tests
accordingly. Calling config without argument no longer throws.
2014-04-10 19:30:38 +01:00
Michael Mclaughlin
b92f900a93 Initial commit 2014-04-02 16:28:08 +01:00