DGz a Hack3r
Enthusiast
Cant find a program that converts the hex values.
What is used to convert "999.0" to "44 79 C0 00" ?
What is used to convert "999.0" to "44 79 C0 00" ?
That one doesn't convert float to hexI prefer http://www.subnetonl...-bin-to-dec.php
But the other link works too.
Just noticed, sorry...That one doesn't convert float to hex
Cant find a program that converts the hex values.
What is used to convert "999.0" to "44 79 C0 00" ?
44 79 C0 00 in hex is equivalent to 0100 0100 0111 1001 1100 0000 0000 0000 in binary.
IEEE has defined a standard for representing float numbers in a fixed number of bits, the bit layout is as follows:
bit 1: sign bit 0 is positive 1 is negative
bit 2-9: exponent excess 127
bit 10-32: fraction bits
So your number, would be broken down as follows:
bit 1: positive number
bit 2-9: 100 0100 0= 136 decimal 136 - 127 = 9 = exponent
bit 10-32: 111 1001 1100 0000 0000 0000 = fraction
scientfic notation of that = 1.111100111 x 2^9
normal notation 1111100111.00
1111100111 = 999 decimal
.00 = .0 obviously
Final number = 999.0