0.0.17 • Published 3 years ago

@dfkaye/safe-math v0.0.17

Weekly downloads
16
License
MIT
Repository
github
Last release
3 years ago

safe-math

Safer floating-point math operations in JavaScript that return results we expect, so that 0.1 + 0.2 adds up to 0.3, e.g., instead of 0.30000000000000004.

Documentation

See full details on my blog post at https://dfkaye.com/posts/2020/08/17/safer-math-operations-in-javascript-using-tdd/.

Install

npm install @dfkaye/safe-math

OR

git clone https://github.com/dfkaye/safer-math.git

Test

Install dependencies (mocha and chai): npm install @dfkaye/safe-math --save-dev

Run: npm test

OR

Visit the live demo running the browser test suite on my blog at https://dfkaye.com/demos/safe-math-test-suite/.

0.0.17

3 years ago

0.0.16

3 years ago

0.0.15

3 years ago

0.0.14

3 years ago

0.0.13

3 years ago

0.0.12

3 years ago

0.0.11

3 years ago

0.0.10

3 years ago

0.0.9

3 years ago

0.0.8

3 years ago

0.0.7

3 years ago

0.0.6

3 years ago

0.0.5

3 years ago

0.0.4

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago