The following code does float to integer converting like so:
var buffer = new Buffer(4);
buffer.writeFloatBE(number, 0);
return -~parseInt(buffer.toString('hex'), 16) - 1;
and its output is like so
(float)0.05 = (int)1028443341
(float)-0.05 = (int)-1119040307
(float)0.1 = (int)1036831949
(float)-0.1 = (int)-1110651699
(float)0.2 = (int)1045220557
(float)-0.2 = (int)-1102263091
(float)0.5 = (int)1056964608
(float)-0.5 = (int)-1090519040
How can I reverse this code, insert integer (1056964608) and return a float?