1,105,286 Community Members

IEEE Short Real Floating Point Format

Member Avatar
Newbie Poster
10 posts since Aug 2010
Reputation Points: 0 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 0 [?]


I have a decimal number (e.g 6433) and would like to see the process of converting this to IEEE short real floating point format!

Any help is appreciated ;)

Member Avatar
Rashakil Fol
Super Senior Demiposter
2,596 posts since Jun 2005
Reputation Points: 982 [?]
Q&As Helped to Solve: 209 [?]
Skill Endorsements: 42 [?]
Team Colleague

See the wikipedia page on the topic: https://en.wikipedia.org/wiki/IEEE_754-2008

Basically you have a sign bit, an exponent part, and a mantissa part, and they represent the number

(1-2*sign_bit) * (1.0 + mantissa) * 2^(exponent - K) where K is a constant, exponent is interpreted as an unsigned integer, and mantissa is interpreted as the bits (of a base 2 number) after the decimal point, forming the number 1.abcdefghijklm... where abcdefghijklm... are the bits of the mantissa. And sign_bit is 0 or 1 of course.

This article has been dead for over three months: Start a new discussion instead
Start New Discussion
View similar articles that have also been tagged: