File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
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: 42965
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:
subject: IEEE format convesion
It's not a secret anymore!