I need to parse a byte array to find latitude and longitude.
I have four bytes {0x91,0x2a,0xb4,0x41}
that I use to calculate the latitude.
The response should be 22.52078
.
How can I find the result ? I use C# to do the parse.
I need to parse a byte array to find latitude and longitude.
I have four bytes {0x91,0x2a,0xb4,0x41}
that I use to calculate the latitude.
The response should be 22.52078
.
How can I find the result ? I use C# to do the parse.
Looks like a
float
(4 bytes)...Demo.
Don't confuse
float
/double
/decimal
:double
(andfloat
to a lesser extent) are a better fit for physical measures.