correct-operations
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

Correct Operations

A simple module to fix decimal operations errors in javascript

How to use

import {sum} from "correct-operations"

console.log(0.1 + 0.2)
//Output: 0.30000000000000004

console.log(sum(0.1, 0.2))
//Output: 0.3

Package Sidebar

Install

npm i correct-operations

Weekly Downloads

0

Version

1.0.0

License

MIT

Unpacked Size

3.9 kB

Total Files

5

Last publish

Collaborators

  • arthur-lobo