Package java.lang Previous
Previous
Java API
Java API
Index
Index
Next
Next

Class Number

Methods

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.


Methods


doubleValue

public abstract double doubleValue() 

Return Value:

Returns The numeric value represented by this object is returned after conversion to type double.


floatValue

public abstract float floatValue() 

Return Value:

Returns The numeric value represented by this object is returned after conversion to type float.


intValue

public abstract int intValue() 

Return Value:

Returns The numeric value represented by this object is returned after conversion to type int.


longValue

public abstract long longValue() 

Return Value:

Returns The numeric value represented by this object is returned after conversion to type long.



Top© 1996 Sun Microsystems, Inc. All rights reserved.