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

100 Commits

Author SHA1 Message Date
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
Michael Mclaughlin
fd668fea70 Add Decimal.isDecimal and config reset 2017-12-09 22:05:28 +00:00
Michael Mclaughlin
17a358f2f4 Correct typings: toFraction returns Decimal[] 2017-12-09 11:51:25 +00:00
Michael Mclaughlin
1cbf5ffb44 v7.5.1 2017-12-03 22:21:41 +00:00
Michael M
84bf971160
Merge pull request #75 from chrisguttandin/fix-type-definition
remove abandoned character
2017-12-03 22:15:13 +00:00
chrisguttandin
6e91027ee0 remove abandoned character 2017-12-03 22:55:11 +01:00
Michael Mclaughlin
35a8cddde9 v7.5.0 2017-12-03 18:09:41 +00:00
Michael Mclaughlin
244138f8c2 Merge branch 'master' of https://github.com/MikeMcl/decimal.js 2017-12-03 18:09:04 +00:00
Michael Mclaughlin
d477d566ea Use TypeScript delarations outside modules 2017-12-03 17:42:48 +00:00
Michael M
1a552b2d6c
Merge pull request #73 from mkutny/doc
docs: typos fixed
2017-11-29 23:22:05 +00:00
Max Kutny
074a97d06a docs: typos fixed 2017-11-29 16:25:43 +02:00
Michael Mclaughlin
a0b78b6275 v7.4.0 2017-11-25 23:45:15 +00:00
Michael Mclaughlin
df5ed821f3 Add Typescript typings 2017-11-25 23:42:03 +00:00
Michael Mclaughlin
433759294a v7.3.0 2017-09-26 18:23:56 +01:00
Michael Mclaughlin
4ca749e352 Rename decimal.es6.js to decimal.mjs 2017-09-26 18:19:06 +01:00
Michael Mclaughlin
9f3875a54d Remove node 0.6 from .travis.yml 2017-09-26 18:16:37 +01:00
Michael Mclaughlin
2ed8a040c7 v7.2.4 2017-09-09 18:53:23 +01:00
Michael Mclaughlin
9ae7ca7088 Fix import issues 2017-09-09 18:50:00 +01:00
Michael Mclaughlin
3cbfd6da08 Update docs re global.crypto 2017-09-09 18:47:57 +01:00
Michael Mclaughlin
784a38a8db v7.2.3 2017-06-27 22:08:50 +01:00
Michael Mclaughlin
22ac9377c6 Bugfix: #58 pow sometimes throws when result is Infinity 2017-06-27 22:07:37 +01:00
Michael Mclaughlin
32f0a63095 v7.2.2 2017-06-25 23:39:53 +01:00
Michael Mclaughlin
4d05267ba8 Bugfix: #57 Powers of -1 for integers over Number.MAX_SAFE_INTEGER 2017-06-25 23:35:15 +01:00
Michael Mclaughlin
3566299686 v7.2.1 2017-05-04 20:12:26 +01:00
Michael M
f2410a712a Merge pull request #51 from lukaskollmer/patch-1
Fix broken Readme badges
2017-05-04 20:06:59 +01:00
Lukas Kollmer
981ba5c749 Update README.md 2017-05-04 14:05:38 +02:00
Michael Mclaughlin
2be14dfdd7 v7.2.0 Add decimal.es6.js 2017-04-09 23:07:52 +01:00
Michael Mclaughlin
85a499eb86 v7.1.2 2017-04-05 19:03:17 +01:00
Michael Mclaughlin
eec7273c19 Decimal.default to Decimal['default'] IE8 issue 2017-04-05 18:59:11 +01:00
Michael Mclaughlin
5547cc805d Minor doc edit 2017-01-10 23:37:36 +00:00
Michael M
d199c97af4 Merge pull request #44 from qwe19272375/add-cdnjs-badge
Add CDNJS badge
2017-01-10 23:33:02 +00:00
Michael Mclaughlin
45eec0b863 v7.1.1 2017-01-10 19:34:40 +00:00
Michael Mclaughlin
27de48c4c3 Remove duplicated for-loop. Minor refactoring. 2017-01-10 19:19:28 +00:00
Brian Hsieh
e6c234f109 add CDNJS badge in README.md
This badge will show the version on CDNJS!
2017-01-03 00:20:11 +08:00
Michael Mclaughlin
148be72e6f v7.1.0 2016-11-10 00:08:25 +00:00
Michael Mclaughlin
4df9158a1a Support ES6 imports 2016-11-09 23:41:31 +00:00
Michael Mclaughlin
e48bddf45a v7.0.0 2016-11-09 17:08:38 +00:00
Michael Mclaughlin
46b1aad320 Remove crypto require. Add set as config alias. 2016-11-09 17:01:36 +00:00
Michael Mclaughlin
fb37ca6bde v6.0.0 2016-06-30 19:27:50 +01:00
Michael M
28451fb05c Amend main field 2016-04-04 21:00:57 +01:00
Michael Mclaughlin
8a631cc327 v5.0.8 2016-03-09 22:57:25 +00:00
Michael Mclaughlin
45e9752280 Correct year 2016-03-09 22:55:02 +00:00
Michael Mclaughlin
ff621c1e35 Add newline to single test results 2016-03-09 22:54:34 +00:00
Michael M
6ec2449a07 Merge pull request #29 from jonahbron/master
Correct package name in Node require example
2016-03-03 16:34:32 +00:00