fixed-floor

1.0.0 • Public • Published

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.

Package Sidebar

Install

npm i fixed-floor

Weekly Downloads

1

Version

1.0.0

License

ISC

Last publish

Collaborators

  • atool