to-fin
TypeScript icon, indicating that this package has built-in type declarations

1.0.5 • Public • Published

to-fin

convert to financal decimal number and fix JS accuracy problems

Usage

import toFin from "to-fin";

// floor number
toFin(56.788); // 56.78 not 56.79
// correct number
toFin(3 * 0.3); // 0.9 not 0.8999999999999999

Readme

Keywords

Package Sidebar

Install

npm i to-fin

Weekly Downloads

7

Version

1.0.5

License

MIT

Unpacked Size

2.23 kB

Total Files

5

Last publish

Collaborators

  • mm996