We're a community of 1076K IT Pros here for help, advice, solutions, professional growth and fun. Join us!
1,075,585 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Start New Discussion Reply to this Discussion

IEEE Short Real Floating Point Format

Hi!

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 ;)

2
Contributors
1
Reply
11 Hours
Discussion Span
1 Year Ago
Last Updated
2
Views
stevthym
Newbie Poster
10 posts since Aug 2010
Reputation Points: 10
Solved Threads: 0
Skill Endorsements: 0

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.

Rashakil Fol
Super Senior Demiposter
Team Colleague
2,732 posts since Jun 2005
Reputation Points: 1,153
Solved Threads: 182
Skill Endorsements: 24

This article has been dead for over three months: Start a new discussion instead

Post: Markdown Syntax: Formatting Help
 
You
View similar articles that have also been tagged:
 
© 2013 DaniWeb® LLC
Page rendered in 0.0533 seconds using 2.63MB