|
RoboJDETM v2.0 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Float
public class Float
Class to represent a float as an immutable object.
Field Summary | |
---|---|
static float |
MAX_VALUE
Maximum non-inifinity value. |
static float |
MIN_VALUE
Smallest positive value. |
static float |
NaN
Not a number value. |
static float |
NEGATIVE_INFINITY
Negative infinity. |
static float |
POSITIVE_INFINITY
Positive infinity. |
Constructor Summary | |
---|---|
Float(float f)
Constructs a Float object. |
Method Summary | |
---|---|
static int |
floatToRawIntBits(float value)
Returns an int containing the bits that represent the specified float. |
static float |
intBitsToFloat(int bits)
Returns the float represented by the bit in the specified int. |
static boolean |
isInfinite(float f)
Checks if the float value specified is infinite. |
boolean |
isNaN()
Checks if this Float is Not-a-Number (NaN). |
static boolean |
isNaN(float f)
Checks if the float value specified is Not-a-Number (NaN). |
String |
toString()
Returns a String representation of this Float. |
static String |
toString(float f)
Returns a String representation of the specified float. |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait |
Field Detail |
---|
public static final float MAX_VALUE
public static final float MIN_VALUE
public static final float NaN
public static final float NEGATIVE_INFINITY
public static final float POSITIVE_INFINITY
Constructor Detail |
---|
public Float(float f)
f
- float valueMethod Detail |
---|
public static int floatToRawIntBits(float value)
value
- float value
public static float intBitsToFloat(int bits)
bits
- bit representation of the float value
public static boolean isInfinite(float f)
f
- float to check
public boolean isNaN()
public static boolean isNaN(float f)
f
- float to check
public String toString()
toString
in class Object
public static String toString(float f)
f
- float value
|
RoboJDETM v2.0 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |