aspose 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

Win a copy of The Software Craftsman this week in the Agile 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: 42954
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.
It is sorta covered in the JavaRanch Style Guide.
subject: IEEE format convesion