File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
Author

IEEE format convesion

shruty sharma
Greenhorn

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
Marshal

Joined: Mar 22, 2005
Posts: 42047
    
  64
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.


Ping & DNS - my free Android networking tools app
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.
 
GeeCON Prague 2014
 
subject: IEEE format convesion