1
0
mirror of https://github.com/MikeMcl/decimal.js.git synced 2024-10-27 20:34:12 +00:00
This commit is contained in:
Michael Mclaughlin 2020-09-28 22:28:15 +01:00
parent e70384ea7e
commit be7d6b05ab
9 changed files with 26 additions and 12 deletions

View File

@ -1,6 +1,8 @@
language: node_js language: node_js
node_js: node_js:
- "node" - "node"
- "14"
- "13"
- "12" - "12"
- "11" - "11"
- "10" - "10"

View File

@ -1,3 +1,7 @@
#### 10.2.1
* 28/09/2020
* Correct `sqrt` initial estimate.
#### 10.2.0 #### 10.2.0
* 08/05/2019 * 08/05/2019
* #128 Workaround V8 `Math.pow` change. * #128 Workaround V8 `Math.pow` change.

View File

@ -1,6 +1,6 @@
The MIT Licence. The MIT Licence.
Copyright (c) 2019 Michael Mclaughlin Copyright (c) 2020 Michael Mclaughlin
Permission is hereby granted, free of charge, to any person obtaining Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the a copy of this software and associated documentation files (the

View File

@ -2,6 +2,8 @@
An arbitrary-precision Decimal type for JavaScript. An arbitrary-precision Decimal type for JavaScript.
[![npm version](https://img.shields.io/npm/v/decimal.js.svg)](https://www.npmjs.com/package/decimal.js)
[![npm downloads](https://img.shields.io/npm/dw/decimal.js)](https://www.npmjs.com/package/decimal.js)
[![Build Status](https://travis-ci.org/MikeMcl/decimal.js.svg)](https://travis-ci.org/MikeMcl/decimal.js) [![Build Status](https://travis-ci.org/MikeMcl/decimal.js.svg)](https://travis-ci.org/MikeMcl/decimal.js)
[![CDNJS](https://img.shields.io/cdnjs/v/decimal.js.svg)](https://cdnjs.com/libraries/decimal.js) [![CDNJS](https://img.shields.io/cdnjs/v/decimal.js.svg)](https://cdnjs.com/libraries/decimal.js)
@ -34,7 +36,7 @@ For a lighter version of this library without the trigonometric functions see [d
## Load ## 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 ES module *decimal.mjs*.
Browser: Browser:
@ -42,17 +44,24 @@ Browser:
<script src='path/to/decimal.js'></script> <script src='path/to/decimal.js'></script>
``` ```
```html
<script type="module">
import Decimal from './path/to/decimal.mjs';
...
</script>
```
[Node.js](http://nodejs.org): [Node.js](http://nodejs.org):
```bash ```bash
$ npm install --save decimal.js $ npm install decimal.js
``` ```
```js ```js
var Decimal = require('decimal.js'); var Decimal = require('decimal.js');
``` ```
ES6 module (*decimal.mjs*): ES module:
```js ```js
//import Decimal from 'decimal.js'; //import Decimal from 'decimal.js';

View File

@ -3,10 +3,10 @@
/* /*
* decimal.js v10.2.0 * decimal.js v10.2.1
* An arbitrary-precision Decimal type for JavaScript. * An arbitrary-precision Decimal type for JavaScript.
* https://github.com/MikeMcl/decimal.js * https://github.com/MikeMcl/decimal.js
* Copyright (c) 2019 Michael Mclaughlin <M8ch88l@gmail.com> * Copyright (c) 2020 Michael Mclaughlin <M8ch88l@gmail.com>
* MIT Licence * MIT Licence
*/ */

3
decimal.min.js vendored

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1,8 +1,8 @@
/* /*
* decimal.js v10.2.0 * decimal.js v10.2.1
* An arbitrary-precision Decimal type for JavaScript. * An arbitrary-precision Decimal type for JavaScript.
* https://github.com/MikeMcl/decimal.js * https://github.com/MikeMcl/decimal.js
* Copyright (c) 2019 Michael Mclaughlin <M8ch88l@gmail.com> * Copyright (c) 2020 Michael Mclaughlin <M8ch88l@gmail.com>
* MIT Licence * MIT Licence
*/ */

View File

@ -1,7 +1,7 @@
{ {
"name": "decimal.js", "name": "decimal.js",
"description": "An arbitrary-precision Decimal type for JavaScript.", "description": "An arbitrary-precision Decimal type for JavaScript.",
"version": "10.2.0", "version": "10.2.1",
"keywords": [ "keywords": [
"arbitrary", "arbitrary",
"precision", "precision",