/afloat

Float an integer value

Primary LanguageJavaScript

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