Two Laptop Bag*
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 Murach's Java Servlets and JSP this week in the Servlets forum!
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: 41089
    
  44
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.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: IEEE format convesion
 
Similar Threads
Related to strictfp
Software standard
No community or association for software developer?
double subtraction
strictfp