fixed-floor
v1.0.0
Published
Math.floor with fixed, formats a number using fixed-point notation and returns a number.
Downloads
2
Readme
fixed-floor
Math.floor with fixed, formats a number using fixed-point notation and returns a number.
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.