pull/75/head v7.5.0
Michael Mclaughlin 7 years ago
parent 244138f8c2
commit 35a8cddde9

@ -1,6 +1,10 @@
#### 7.5.0
* 03/12/2017
* Use TypeScript declarations outside modules.
#### 7.4.0
* 25/11/2017
* Add Typescript typings.
* Add TypeScript typings.
#### 7.3.0
* 26/09/2017

@ -17,6 +17,7 @@ An arbitrary-precision Decimal type for JavaScript.
- No dependencies
- Wide platform compatibility: uses JavaScript 1.5 (ECMAScript 3) features only
- Comprehensive [documentation](http://mikemcl.github.io/decimal.js/) and test set
- Includes a TypeScript declaration file: *decimal.d.ts*
![API](https://raw.githubusercontent.com/MikeMcl/decimal.js/gh-pages/API.png)
@ -34,7 +35,7 @@ For a lighter version of this library without the trigonometric functions see th
## Load
The library is the single JavaScript file *decimal.js* (or minified, *decimal.min.js*).
The library is the single JavaScript file *decimal.js* (or minified, *decimal.min.js*, or *decimal.mjs* if ES6 modules are supported).
It can be loaded using a script tag in an HTML document for the browser
@ -89,6 +90,12 @@ z.toBinary() // '0b110101011.1111'
z.toBinary(13) // '0b1.101010111111p+8'
```
Using binary exponential notation to create a Decimal with the value of `Number.MAX_VALUE`:
```js
x = new Decimal('0b1.1111111111111111111111111111111111111111111111111111p+1023')
```
A Decimal is immutable in the sense that it is not changed by its methods.
```js
@ -217,13 +224,6 @@ npm run build
will create *decimal.min.js*, and a source map will also be added to the *doc* directory.
## Feedback
<a href='mailto:M8ch88l@gmail.com'>M8ch88l@gmail.com</a>
**BTC** 16MjxmTB5EZxY5Uk9xyhfsu4n9gYxEJYkY
## Licence
MIT.

@ -1,7 +1,7 @@
{
"name": "decimal.js",
"main": "decimal.js",
"version": "7.4.0",
"version": "7.5.0",
"homepage": "https://github.com/MikeMcl/decimal.js",
"authors": [
"Michael Mclaughlin <M8ch88l@gmail.com>"

@ -1,10 +1,10 @@
/*! decimal.js v7.4.0 https://github.com/MikeMcl/decimal.js/LICENCE */
/*! decimal.js v7.5.0 https://github.com/MikeMcl/decimal.js/LICENCE */
;(function (globalScope) {
'use strict';
/*
* decimal.js v7.4.0
* decimal.js v7.5.0
* An arbitrary-precision Decimal type for JavaScript.
* https://github.com/MikeMcl/decimal.js
* Copyright (c) 2017 Michael Mclaughlin <M8ch88l@gmail.com>

2
decimal.min.js vendored

File diff suppressed because one or more lines are too long

@ -1,6 +1,6 @@
/*
*
* decimal.js v7.4.0
* decimal.js v7.5.0
* An arbitrary-precision Decimal type for JavaScript.
* https://github.com/MikeMcl/decimal.js
* Copyright (c) 2017 Michael Mclaughlin <M8ch88l@gmail.com>

@ -1,7 +1,7 @@
{
"name": "decimal.js",
"description": "An arbitrary-precision Decimal type for JavaScript.",
"version": "7.4.0",
"version": "7.5.0",
"keywords": [
"arbitrary",
"precision",
@ -29,7 +29,7 @@
"license": "MIT",
"scripts": {
"test": "node ./test/test.js",
"build": "uglifyjs decimal.js --source-map doc/decimal.js.map -c -m -o decimal.min.js --preamble \"/* decimal.js v7.4.0 https://github.com/MikeMcl/decimal.js/LICENCE */\""
"build": "uglifyjs decimal.js --source-map doc/decimal.js.map -c -m -o decimal.min.js --preamble \"/* decimal.js v7.5.0 https://github.com/MikeMcl/decimal.js/LICENCE */\""
},
"types": "decimal.d.ts"
}

Loading…
Cancel
Save