dcmal.js
TypeScript icon, indicating that this package has built-in type declarations

0.1.0 • Public • Published

Humanized number with decimal point.

npm install dcmal.js

How it works?

const x = (0.00001254).toFixed(2)

// return "0.00" - NO GOOD
const { Dcmal } = require('./dist/dcmal.js');

const dcmal = Dcmal({prec: 2})
const x = dcmal.round(0.00001254)

// return "0.000013" - GOOD

Package Sidebar

Install

npm i dcmal.js

Weekly Downloads

0

Version

0.1.0

License

MIT

Unpacked Size

14 kB

Total Files

14

Last publish

Collaborators

  • yydarwin