0.5.0 • Published 5 years ago

@pansy/number-precision v0.5.0

Weekly downloads
-
License
MIT
Repository
-
Last release
5 years ago

解决浮动运算问题,避免小数点后产生多数值和计算精度损失

📦 安装

// npm
npm install @pansy/number-precision --save

// yarn
yarn add @pansy/number-precision

🔨 使用

import NumberPrecision from '@pansy/number-precision';

const np = NumberPrecision();

np.add(0.1 + 0.2); // 0.3
0.5.0

5 years ago

0.4.0

5 years ago

0.3.6

6 years ago

0.3.5

6 years ago

0.3.3

6 years ago

0.3.2

6 years ago

0.3.1

6 years ago

0.3.0

6 years ago

0.2.1

6 years ago