1.1.1 • Published 4 years ago
@sovpro/unfloat v1.1.1
Unfloat
Unfloat a floating value to an integer number.
let unfloated_val = unfloat (1.123456789)
// unfloated_val will be: 123456789
Preserve integer digits
let unfloated_val = unfloat (1.123456789, true)
// unfloated_val will be: 1123456789