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

143 Commits

Author SHA1 Message Date
Michael Mclaughlin
66a21ee9d1 #100 Add Decimal.sum method 2021-06-22 10:13:28 +01:00
Michael Mclaughlin
0e0dcaec27 #146 Symbol.for to Symbol['for'] 2021-06-21 18:31:41 +01:00
Michael Mclaughlin
04c6c6f115 #132 Fix possible infinite loop when minE is very low 2021-06-21 18:17:53 +01:00
Michael M
6e5a599fcc
Merge pull request #180 from m93a/patch-isdecimal
Make the constructor accept different instances of Decimal
2021-06-09 18:43:39 +01:00
Michal Grno
498327d8d4 Decimal(v) now works even if v is from a different instance of Decimal 2021-06-09 16:19:34 +02:00
Michael M
6545e24c24
Merge pull request #169 from 2color/patch-1
Use https in links
2021-02-16 17:26:58 +00:00
Daniel Norman
26b348f383
Use https in links 2021-02-16 13:37:43 +01:00
Michael Mclaughlin
be7d6b05ab v10.2.1 2020-09-28 22:28:15 +01:00
Michael Mclaughlin
e70384ea7e Correct sqrt initial estimate 2020-09-28 21:58:18 +01:00
Michael M
11699c1d1c
Merge pull request #149 from Mazuh/patch-2
update api docs to warn about isNegative pitfall
2020-05-26 20:39:41 +01:00
Michael M
023981df23
Merge pull request #150 from MikeMcl/revert-148-patch-1
Revert "advice about negative zeroes on README"
2020-05-26 20:39:20 +01:00
Michael M
24726f5950
Revert "advice about negative zeroes on README" 2020-05-26 20:39:05 +01:00
Michael M
b53a593401
Merge pull request #148 from Mazuh/patch-1
Advice about negative zero
2020-05-26 20:37:45 +01:00
Marcell Guilherme Costa da Silva
39991b8249
update api docs to warn about isNegative pitfall 2020-05-24 17:06:11 -03:00
Marcell Guilherme Costa da Silva
a56f15f374
advice about negative zeroes on README 2020-05-07 01:01:50 -03:00
Michael M
5a6e1384d8
Merge pull request #135 from eliottvincent/master
#134 Correct documentation examples
2019-07-25 10:40:28 +01:00
Eliott Vincent
b75e2fdc45 #134 Correct documentation examples 2019-07-25 09:31:07 +02:00
Michael Mclaughlin
30828c01a6 v10.2.0 2019-05-08 17:05:51 +01:00
Michael Mclaughlin
3f9eeb0897 #128 Accept + prefix 2019-05-08 17:05:12 +01:00
Michael Mclaughlin
f468de8e79 #128 Add tinyPow to workaround V8 Math.pow change 2019-05-08 16:16:42 +01:00
Michael M
fe487dc39e
Merge pull request #129 from zgayjjf/patch-1
docs: typo fixed
2019-05-08 15:58:12 +01:00
jeffjing
0a81a6758a
docs: typo fixed
Related to [#73](https://github.com/MikeMcl/decimal.js/pull/73/files)
2019-05-08 21:13:01 +08:00
Michael M
f0dc751067
Merge pull request #127 from harrysarson/patch-1
Check node 12 in CI
2019-04-29 23:17:42 +01:00
Harry Sarson
6c6fbe7cac
Check node 12 in CI 2019-04-29 16:42:27 +01:00
Michael Mclaughlin
b041339e2a v10.1.1 2019-02-27 10:10:12 +00:00
Michael Mclaughlin
8262235084 Check Symbol properly 2019-02-27 10:06:46 +00:00
Michael Mclaughlin
7818dff1ca v10.1.0
#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.
2019-02-26 23:27:35 +00:00
Michael M
50dc74c3cb
Merge pull request #122 from adrianhara/master
Added custom util.inspect() function
2019-02-26 23:23:55 +00:00
Adrian Hara
bc2979c96a Added custom util.inspect() function that just prints out the "toString()" result of the decimal. 2019-02-25 17:06:47 +01:00
Michael Mclaughlin
9106f0a010 v10.0.2 2018-12-13 18:29:06 +00:00
Michael Mclaughlin
0c83e6a804 Remove bower.json 2018-12-13 18:28:37 +00:00
Michael M
846b9e6c57
#114 Remove sourceMappingURL 2018-12-13 18:16:16 +00:00
Michael Mclaughlin
bf504624f8 v10.0.1 2018-05-24 16:45:53 +01:00
Michael Mclaughlin
c6fb6a87b3 Add browser field to package.json 2018-05-24 16:41:43 +01:00
Michael Mclaughlin
903b98877d Avoid Content Security Policy unsafe-eval issue 2018-04-26 17:54:17 +01:00
Michael Mclaughlin
2e75623cc3 v10.0.0 2018-03-10 22:10:08 +00:00
Michael Mclaughlin
93930f8a23 Put global ts definitions in separate file (see bignumber.js #143) 2018-03-10 22:00:51 +00:00
Michael Mclaughlin
a821788a7c Explain trig precision limits 2018-03-10 21:57:13 +00:00
Michael Mclaughlin
ba99e657d2 #82 #91 const to var 2018-03-10 19:46:08 +00:00
Michael Mclaughlin
6016146ef7 #88 Update doc and .mjs after toNearest change 2018-03-10 19:43:59 +00:00
Michael M
c99bdef459
Merge pull request #88 from luciavelasco/fix-toNearest-rounding
Fix toNearest rounding
2018-03-05 22:52:28 +00: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
4949869b5e Allows round up and round ceil to work in the toNearest function.
This makes the new tests in the previous commit work.
A value of less than half of the first parameter of toNearest will now round up to the nearest multiplication of that first parameter.
2018-03-02 22:07:56 +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
875f6d0f7a v9.0.1 2017-12-15 10:38:51 +00:00
Michael Mclaughlin
8a7b6a3068 #80 Typings: correct return type 2017-12-15 10:37:01 +00:00
Michael Mclaughlin
dbba3d5b18 v9.0.0 2017-12-14 10:30:42 +00:00
Michael Mclaughlin
eb2efa06fb #78 Typings: remove toFormat 2017-12-14 10:28:30 +00:00
Michael Mclaughlin
dbf681be4a v8.0.0 2017-12-10 18:32:38 +00:00