A friendly place for programming greenhorns!
Big Moose Saloon
Search
|
Java FAQ
|
Recent Topics
Register / Login
JavaRanch
»
Java Forums
»
Java
»
Java in General
Author
IEEE format convesion
shruty sharma
Greenhorn
Joined: Dec 25, 2008
Posts: 4
posted
Dec 29, 2008 04:00:00
0
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: 35258
7
posted
Dec 29, 2008 06:04:00
0
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.
Android apps
–
ImageJ plugins
–
Java web charts
Peter Lawrey
Ranch Hand
Joined: Dec 21, 2008
Posts: 62
posted
Dec 29, 2008 06:37:00
0
Java uses IEEE-754 floating point values. To convert them to decimal you can just print them.
I agree. Here's the link:
http://zeroturnaround.com/jrebel
- it saves me about five hours per week
subject: IEEE format convesion
Similar Threads
Software standard
double subtraction
Related to strictfp
No community or association for software developer?
strictfp
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter