0.5.0 • Published 4 years ago

@pansy/number-precision v0.5.0

Weekly downloads
-
License
MIT
Repository
-
Last release
4 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

4 years ago

0.4.0

4 years ago

0.3.6

4 years ago

0.3.5

4 years ago

0.3.3

4 years ago

0.3.2

4 years ago

0.3.1

4 years ago

0.3.0

4 years ago

0.2.1

4 years ago