Package java.lang |
![]() Previous |
![]() Java API |
![]() Index |
![]() Next |
public abstract class java.lang.Number extends java.lang.Object { // Methods public abstract double doubleValue(); public abstract float floatValue(); public abstract int intValue(); public abstract long longValue(); }
The abstract class Number is the superclass of classes Float , Double , Integer , and Long .
Subclasses of Number must provide methods to convert the represented numeric value to int, long, float, and double.
public abstract double doubleValue()Return Value:
Returns The numeric value represented by this object is returned after conversion to type double.
public abstract float floatValue()Return Value:
Returns The numeric value represented by this object is returned after conversion to type float.
public abstract int intValue()Return Value:
Returns The numeric value represented by this object is returned after conversion to type int.
public abstract long longValue()Return Value:
Returns The numeric value represented by this object is returned after conversion to type long.