wood burning stoves 2.0
The moose likes Java in General and the fly likes IEEE format convesion Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "IEEE format convesion " Watch "IEEE format convesion " New topic

IEEE format convesion

shruty sharma

Joined: Dec 25, 2008
Posts: 4
Can anyone give me the code for conversion of IEEE-754 representation of
float binary to decimal number?
Ulf Dittmer

Joined: Mar 22, 2005
Posts: 42959
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

Joined: Dec 21, 2008
Posts: 62
Java uses IEEE-754 floating point values. To convert them to decimal you can just print them.
I agree. Here's the link: http://aspose.com/file-tools
subject: IEEE format convesion
It's not a secret anymore!