Conversion binary floating point to hex floating point -
for illustration have 0 100 1110
sign exponent mantisa
equal 3.75
. how convert hexadecimal or octal form? have searched hard few hours. please help.
could help me here 100
4
1110
7/8
no way that's (7/8) * 2^4
3.75
.
just convert bits, if integer. ignore fact you're dealing floating point number.
01001110
converts 4e
in hex, because 0100
4
, 1110
e
. (notice how grouping in fours.)
same octal, becomes 116
, because 01
1
, 001
1
, 110
6
. (notice how grouping in threes, except first group.)
floating-point binary hex octal
No comments:
Post a Comment