Convert hexadecimal to IEEE-754 single precision floating point binary scientific notation -


i trying convert these numbers binary scientific notation, cannot figure out process. please process of going solving this?

for ieee 754 single precision floating point, number, written in binary scientific notation, hexadecimal representation following?

0061 0000

i can converted hex unsigned binary:

0000 0000 0110 0001 0000 0000 0000 0000

but can't figure out how represent using binary scientific notation. in advance!

binary32 broken 3 sections: sign, exponent (biased) , significand (or fraction).

0000 0000 0110 0001 0000 0000 0000 0000 ||        ||                          | ||        |\-- significand -----------/ | \ expo  / \ sign 

so in case,

sign (negative) = 0, number positive exponent (biased) = 0000 0000 significand = .1100001 0000 0000 0000 0000 

if exponent (power of 2) @ highest value (1111 1111), indicates number special: infinity or not-a-number.

if exponent 0, bias -126, else bias -127 , implied 1 should added fraction.

sign = 0 (positive) or +1 exponent = 0 - 126 significand = 0.1100001 =  (binary) 1100001/10000000 = 97/128  +1 * pow(2, -126) * 97/128 = 8.9080431273251475213255815711373...e-39 

notes:
on-line converters available. example
endian: order in bytes interpreted can vary. 0061 0000 00 00 61 00. assumption made here example.


Comments

Popular posts from this blog

routing - AngularJS State management ->load multiple states in one page -

python - GRASS parser() error -

Swift game error message -