Skip to content

sovpro/afloat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Afloat

Float an integer value.

Build status for Node.js 4.x and newer

let value = afloat (987654321.1)
// value will be: 0.987654321

Preserve floating digits

let value = afloat (987654321.1, true)
// value will be: 0.9876543211