This week's book giveaway is in the Design forum.
We're giving away four copies of Design for the Mind and have Victor S. Yocco on-line!
See this thread for details.
Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

IEEE format convesion

 
shruty sharma
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can anyone give me the code for conversion of IEEE-754 representation of
float binary to decimal number?
 
Ulf Dittmer
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
IEEE-754 representation of float binary

What exactly do you mean by this? A string that contains the bits as zeros and ones? If so, check out the Float.intBitsToFloat method.
 
Peter Lawrey
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Java uses IEEE-754 floating point values. To convert them to decimal you can just print them.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic