You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

213 lines
5.1 KiB

  1. #### 10.2.1
  2. * 28/09/2020
  3. * Correct `sqrt` initial estimate.
  4. #### 10.2.0
  5. * 08/05/2019
  6. * #128 Workaround V8 `Math.pow` change.
  7. * #93 Accept `+` prefix when parsing string values.
  8. * #129 Fix typo.
  9. #### 10.1.1
  10. * 27/02/2019
  11. * Check `Symbol` properly.
  12. #### 10.1.0
  13. * 26/02/2019
  14. * #122 Add custom `util.inspect()` function.
  15. * Add `Symbol.toStringTag`.
  16. * #121 Constructor: add range check for arguments of type number and Decimal.
  17. * Remove premable from uglifyjs build script.
  18. * Move *decimal.min.js.map* to root directory.
  19. #### 10.0.2
  20. * 13/12/2018
  21. * #114 Remove soureMappingURL from *decimal.min.js*.
  22. * Remove *bower.json*.
  23. #### 10.0.1
  24. * 24/05/2018
  25. * Add `browser` field to *package.json*.
  26. #### 10.0.0
  27. * 10/03/2018
  28. * #88 `toNearest` to return the nearest multiple in the direction of the rounding mode.
  29. * #82 #91 `const` to `var`.
  30. * Add trigonometric precision limit explanantion to documentation.
  31. * Put global ts definitions in separate file (see *bignumber.js* #143).
  32. #### 9.0.1
  33. * 15/12/2017
  34. * #80 Typings: correct return type.
  35. #### 9.0.0
  36. * 14/12/2017
  37. * #78 Typings: remove `toFormat`.
  38. #### 8.0.0
  39. * 10/12/2017
  40. * Correct typings: `toFraction` returns `Decimal[]`.
  41. * Type-checking: add `Decimal.isDecimal` method.
  42. * Enable configuration reset with `defaults: true`.
  43. * Add named export, Decimal, to *decimal.mjs*.
  44. #### 7.5.1
  45. * 03/12/2017
  46. * Remove typo.
  47. #### 7.5.0
  48. * 03/12/2017
  49. * Use TypeScript declarations outside modules.
  50. #### 7.4.0
  51. * 25/11/2017
  52. * Add TypeScript typings.
  53. #### 7.3.0
  54. * 26/09/2017
  55. * Rename *decimal.es6.js* to *decimal.mjs*.
  56. * Amend *.travis.yml*.
  57. #### 7.2.4
  58. * 09/09/2017
  59. * Update docs regarding `global.crypto`.
  60. * Fix `import` issues.
  61. #### 7.2.3
  62. * 27/06/2017
  63. * Bugfix: #58 `pow` sometimes throws when result is `Infinity`.
  64. #### 7.2.2
  65. * 25/06/2017
  66. * Bugfix: #57 Powers of -1 for integers over `Number.MAX_SAFE_INTEGER`.
  67. #### 7.2.1
  68. * 04/05/2017
  69. * Fix *README* badges.
  70. #### 7.2.0
  71. * 09/04/2017
  72. * Add *decimal.es6.js*
  73. #### 7.1.2
  74. * 05/04/2017
  75. * `Decimal.default` to `Decimal['default']` IE8 issue
  76. #### 7.1.1
  77. * 10/01/2017
  78. * Remove duplicated for-loop
  79. * Minor refactoring
  80. #### 7.1.0
  81. * 09/11/2016
  82. * Support ES6 imports.
  83. #### 7.0.0
  84. * 09/11/2016
  85. * Remove `require('crypto')` - leave it to the user
  86. * Default `Decimal.crypto` to `false`
  87. * Add `Decimal.set` as `Decimal.config` alias
  88. #### 6.0.0
  89. * 30/06/2016
  90. * Removed base-88 serialization format
  91. * Amended `toJSON` and removed `Decimal.fromJSON` accordingly
  92. #### 5.0.8
  93. * 09/03/2016
  94. * Add newline to single test results
  95. * Correct year
  96. #### 5.0.7
  97. * 29/02/2016
  98. * Add decimal.js-light link
  99. * Remove outdated example from docs
  100. #### 5.0.6
  101. * 22/02/2016
  102. * Add bower.json
  103. #### 5.0.5
  104. * 20/02/2016
  105. * Bugfix: #26 wrong precision applied
  106. #### 5.0.4
  107. * 14/02/2016
  108. * Bugfix: #26 clone
  109. #### 5.0.3
  110. * 06/02/2016
  111. * Refactor tests
  112. #### 5.0.2
  113. * 05/02/2016
  114. * Added immutability tests
  115. * Minor *decimal.js* clean-up
  116. #### 5.0.1
  117. * 28/01/2016
  118. * Bugfix: #20 cos mutates value
  119. * Add pi info to docs
  120. #### 5.0.0
  121. * 25/01/2016
  122. * Added trigonometric functions and `cubeRoot` method
  123. * Added most of JavaScript's `Math` object methods as Decimal methods
  124. * Added `toBinary`, `toHexadecimal` and `toOctal` methods
  125. * Added `isPositive` method
  126. * Removed the 15 significant digit limit for numbers
  127. * `toFraction` now returns an array of two Decimals, not two strings
  128. * String values containing whitespace or a plus sign are no longer accepted
  129. * `valueOf` now returns `'-0'` for minus zero
  130. * `comparedTo` now returns `NaN` not `null` for comparisons with `NaN`
  131. * `Decimal.max` and `Decimal.min` no longer accept an array
  132. * The Decimal constructor and `toString` no longer accept a base argument
  133. * Binary, hexadecimal and octal prefixes are now recognised for string values
  134. * Removed `Decimal.errors` configuration property
  135. * Removed `toFormat` method
  136. * Removed `Decimal.ONE`
  137. * Renamed `exponential` method to `naturalExponential`
  138. * Renamed `Decimal.constructor` method to `Decimal.clone`
  139. * Simplified error handling and amended error messages
  140. * Refactored the test suite
  141. * `Decimal.crypto` is now `undefined` by default, and the `crypto` object will be used if available
  142. * Major internal refactoring
  143. * Removed *bower.json*
  144. #### 4.0.2
  145. * 20/02/2015 Add bower.json. Add source map. Amend travis CI. Amend doc/comments
  146. #### 4.0.1
  147. * 11/12/2014 Assign correct constructor when duplicating a Decimal
  148. #### 4.0.0
  149. * 10/11/2014 `toFormat` amended to use `Decimal.format` object for more flexible configuration
  150. #### 3.0.1
  151. * 8/06/2014 Surround crypto require in try catch. See issue #5
  152. #### 3.0.0
  153. * 4/06/2014 `random` simplified. Major internal changes mean the properties of a Decimal must now be considered read-only
  154. #### 2.1.0
  155. * 4/06/2014 Amend UMD
  156. #### 2.0.3
  157. * 8/05/2014 Fix NaN toNumber
  158. #### 2.0.2
  159. * 30/04/2014 Correct doc links
  160. #### 2.0.1
  161. * 10/04/2014 Update npmignore
  162. #### 2.0.0
  163. * 10/04/2014 Add `toSignificantDigits`
  164. * Remove `toInteger`
  165. * No arguments to `ceil`, `floor`, `round` and `trunc`
  166. #### 1.0.1
  167. * 07/04/2014 Minor documentation clean-up
  168. #### 1.0.0
  169. * 02/04/2014 Initial release