Skip to content

Math.round with fixed, formats a number using fixed-point notation and returns a number.

Notifications You must be signed in to change notification settings

TCharts/fixed-round

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fixed-round

Math.round with fixed, formats a number using fixed-point notation and returns a number.

Build Status Coverage Status npm npm download

Usage

npm i --save fixed-round

var round = require('fixed-round');
// round(number, toFixed);

round(125.34567, 2); // 125.35
round(125.34567); // 125
round(125.34567, -1); // 130

License

ISC@hustcc.

About

Math.round with fixed, formats a number using fixed-point notation and returns a number.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published