THE PACKAGE JAVA.LANG
java.lang.Float
20.9
If the argument is any value in the range
0x7f800001
through
0x7fffffff
or
in the range
0xff800001
through
0xffffffff
, the result will be NaN. (All
IEEE 754 NaN values are, in effect, lumped together by the Java language
into a single value called NaN.)
In all other cases, let
s
,
e
, and
m
be three values that can be computed from the
argument:
int s = ((bits >> 31) == 0) ? 1 : 1;
int e = ((bits >> 23) & 0xff);
int m = (e == 0) ?
(bits & 0x7fffff) << 1 :
(bits & 0x7fffff) | 0x800000;
Then the floating point result equals the value of the mathematical expression
s
m
2
e
150
.
509
footer
Our partners:
PHP: Hypertext Preprocessor Best Web Hosting
Java Web Hosting
Inexpensive Web Hosting
Jsp Web Hosting
Cheapest Web Hosting
Jsp Hosting
Cheap Hosting
Visionwebhosting.net Business web hosting division of Web
Design Plus. All rights reserved