Win a copy of Mesos in Action this week in the Cloud/Virtualizaton 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