calculate-asmd
Advanced tools
Comparing version 2.3.1 to 2.3.2
{ | ||
"name": "calculate-asmd", | ||
"version": "2.3.1", | ||
"description": "calculate/arithmetic", | ||
"version": "2.3.2", | ||
"description": "The precise addition, subtraction, multiplication and division of JavaScript avoids the error of floating point calculation", | ||
"license": "MIT", | ||
@@ -18,3 +18,3 @@ "scripts": { | ||
"jsnext:main": "dist/index.esm.js", | ||
"typings": "dist/index.d.ts", | ||
"typings": "typings/index.d.ts", | ||
"sideEffects": false, | ||
@@ -26,9 +26,13 @@ "repository": { | ||
"files": [ | ||
"src", | ||
"dist" | ||
"dist", | ||
"typings" | ||
], | ||
"keywords": [ | ||
"calculate", | ||
"asmd", | ||
"arithmetic", | ||
"asmd" | ||
"Addition", | ||
"subtraction", | ||
"multiplication", | ||
"division" | ||
], | ||
@@ -44,10 +48,11 @@ "author": "sanshuiwang", | ||
"docz-plugin-splash": "^1.0.1", | ||
"eslint": "^5.15.3", | ||
"eslint-config-airbnb-base": "^13.1.0", | ||
"eslint-plugin-import": "^2.16.0", | ||
"eslint": "^6.7.2", | ||
"eslint-config-airbnb-base": "^14.0.0", | ||
"eslint-plugin-import": "^2.19.1", | ||
"gh-pages": "^2.1.1", | ||
"mocha": "^6.0.2", | ||
"mocha": "^6.2.2", | ||
"mochawesome": "^4.1.0", | ||
"nock": "^10.0.6", | ||
"typescript": "^3.3.4000", | ||
"nock": "^11.7.0", | ||
"serialize-javascript": "^2.1.2", | ||
"typescript": "^3.7.3", | ||
"umi-library": "^1.4.1" | ||
@@ -54,0 +59,0 @@ }, |
# calculate-asmd | ||
<h3>JavaScript Arithmetic</h3> | ||
[![NPM version][npm-image]][npm-url] | ||
![][david-url] | ||
![][dt-url] | ||
![][license-url] | ||
> Production | ||
The precise addition, subtraction, multiplication and division of JavaScript avoids the error of floating point calculation. | ||
<h2>Production</h2> | ||
[0.2 + 0.4 = 0.6 ?](https://github.com/sanshuiwang/Blog/issues/9) | ||
> Usage | ||
<h2>Install</h2> | ||
<h4>Install</h4> | ||
`yarn add calculate-asmd` | ||
@@ -19,3 +22,3 @@ | ||
<h4>Demo</h4> | ||
<h2>Usage</h2> | ||
@@ -47,4 +50,16 @@ ``` | ||
<h4>Expand</h4> | ||
<h3>asmd(arg1,arg2)</h3> | ||
`arg1`: Default 0, type number/string | ||
`arg2`: Default 0, type number/string | ||
`Tips: If arg is NaN, it will return NaN directly. If arg is null/undefined/"", arg will be treated as 0` | ||
<h3>div(arg1,arg2)</h3> | ||
`arg2`: If arg2 is 0, it will return Infinity. | ||
<h2>Expand</h2> | ||
``` | ||
@@ -59,16 +74,14 @@ import { scaleNum } from 'calculate-asmd' | ||
> asmd(arg1,arg2) | ||
<h2>Test</h2> | ||
`arg1`: Default 0, type number/string | ||
[Test Document](https://sanshuiwang.github.io/calculate-asmd/) | ||
`arg2`: Default 0, type number/string | ||
<h2>LICENSE</h2> | ||
`Tips: If arg is NaN, it will return NaN directly. If arg is null/undefined/"", arg will be treated as 0` | ||
[MIT License](https://raw.githubusercontent.com/sanshuiwang/calculate-asmd/master/LICENSE) | ||
> div(arg1,arg2) | ||
`arg2`: If arg2 is 0, it will return Infinity. | ||
> Test | ||
[Test Document](https://sanshuiwang.github.io/calculate-asmd/) | ||
[npm-url]: https://npmjs.org/package/calculate-asmd | ||
[npm-image]: https://badge.fury.io/js/calculate-asmd.png | ||
[david-url]: https://david-dm.org/sanshuiwang/calculate-asmd.png | ||
[dt-url]: https://img.shields.io/npm/dt/calculate-asmd.svg | ||
[license-url]: https://img.shields.io/npm/l/calculate-asmd.svg |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
85
16974
13
393