Converts a non-overlapping increasing sequence of numbers into a fixed point big number representation.
var toFixed = require("robust-to-fixed-point")
var seq = [Math.pow(2, -200), Math.pow(2, 200)]
console.log(toFixed(seq).toString(16))
Output:
4000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
npm install robust-sequence-to-fixed-point
var toFixed = require("robust-sequence-to-fixed-point")
Converts a sequence of floats into a fixed point bignumber.
seq
is a sequence of floating point values
Returns A fixed point big integer, with the decimal point at 2^1074.
The binary position of the decimal point
Is always 1074
(c) 2014 Mikola Lysenko. MIT License