Skip to content

Commit

Permalink
release: v1.5.1 feat: change core.ts to accurate-core dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
Ipxxiao committed Jul 24, 2020
1 parent 8b7ba1d commit b87c526
Show file tree
Hide file tree
Showing 29 changed files with 62 additions and 837 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ Changelog entries are classified using the following labels _(from [keep-a-chang

</details>

## 1.5.1 (2020-07-24)

- Changed core.ts to accurate-core dependencies

## 1.4.21 (2020-07-23)

- Security bump lodash from 4.17.15 to 4.17.19. See ([pull/2](https://github.com/Ipxxiao/accurate/pull/2))
Expand Down
17 changes: 9 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
[![NPM downloads](https://img.shields.io/npm/dm/accurate.svg?style=flat)](https://www.npmjs.com/package/accurate)
[![Coverage Status](https://coveralls.io/repos/github/Ipxxiao/accurate/badge.svg?branch=master)](https://coveralls.io/github/Ipxxiao/accurate?branch=master)

Accurate is an precision calculation for JavaScript and Nodejs. 解决JavaScript与Node.js精度计算(浮点数计算精度)问题。
Accurate is an precision calculation for JavaScript and Nodejs. supports numbers, decimals, strings, arrays, matrices and expression.
解决JavaScript与Node.js精度计算(浮点数计算精度)问题。支持数字、小数、字符串、数组、矩阵和表达式。

## Browsers support

Expand Down Expand Up @@ -67,8 +68,8 @@ addition(1.1, 0.3, 0.1)
``` javascript
>
1.1 - 0.2 - 0.1
accurate.subtract(1.1, 0.2, 0.1)
subtraction(1.1, 0.2, 0.1)
accurate.subtract([1.1, 0.2, 0.1])
subtraction([1.1, 0.2, 0.1])

<-
0.8000000000000002
Expand All @@ -80,9 +81,9 @@ subtraction(1.1, 0.2, 0.1)
``` javascript
>
1.1 * 0.1 * 0.2
accurate.multiply(1.1, 0.1, 0.2)
accurate.mul(1.1, 0.1, 0.2)
multiplication(1.1, 0.1, 0.2)
accurate.multiply([1.1, [0.1, 0.2]])
accurate.mul([1.1, [0.1, 0.2]])
multiplication([1.1, [0.1, 0.2]])

<-
0.022000000000000006
Expand All @@ -95,8 +96,8 @@ multiplication(1.1, 0.1, 0.2)
``` javascript
>
1.1 / 10 / 2
accurate.division(1.1, 10, 2)
accurate.divide(1.1, 10, 2)
accurate.division([1.1, 10], 2)
accurate.divide([1.1, 10], 2)

<-
0.05500000000000001
Expand Down
4 changes: 3 additions & 1 deletion __tests__/index.spec.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import accurate, { add, addition, subtract, subtraction, multiply, mul, multiplication, division, divide, modulo, modulus, expr, } from '../src/index'
import accurate, {
add, addition, subtract, subtraction, multiply, mul, multiplication, division, divide, modulo, modulus, expr
} from '../src/index'

const methods = ['add', 'subtract', 'multiply', 'division', 'modulo', 'expr']

Expand Down
78 changes: 0 additions & 78 deletions libs/cjs/core.d.ts

This file was deleted.

129 changes: 0 additions & 129 deletions libs/cjs/core.js

This file was deleted.

1 change: 0 additions & 1 deletion libs/cjs/core.js.map

This file was deleted.

12 changes: 6 additions & 6 deletions libs/cjs/expr.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion libs/cjs/expr.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit b87c526

Please sign in to comment.