Skip to content

Math.floor 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-floor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fixed-floor

Math.floor 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-floor

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

floor(125.34567, 2); // 125.34
floor(125.34567); // 125
floor(125.34567, -1); // 120

License

ISC@ProtoTeam.

About

Math.floor 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