I have a float value representing GPS coordinates and I liked to convert it to a 32bit hex string.
I tried every solution described here but everytime, the result is not what I am expecting.
For example, most of the 'ToHex' functions :
var lat = 45.839152;
console.log(ToHex(lat));
returns me 2d.56d0b30b5aa8
but I am expecting 42355b43
for result as most converters returns
do you know how I could get 42355b43
as a result in JavaScript ?
Thank you !