User Profile
Collapse
-
Thanks, But I do not have a problem getting the correct answer in C. I have a poblem getting the correct answer in C#.Leave a comment:
-
Hex to IEEE 754
Hello,
I am trying to convert a hex value "4B3C614E" to a IEEE 754 floating point value. The correct answer to 0x4B3C614E is 12345678.00. However in C#,
I keep getting the value 1262248270. I do not have any idea how to get the
12345678.00 like is should be per the site: http://babbage.cs.qc.e du/IEEE-754/Decimal.html . My code is below:
int myHex = 0x4b3c614e;
float myFloat = System.Convert. ToSingle(myHex) ;...
No activity results to display
Show More
Leave a comment: