Class java.lang.Number
All Packages  Class Hierarchy  This Package  Previous  Next  Index
Class java.lang.Number 
java.lang.Object
|
   +----java.lang.Number
- public class Number - extends Object 
Number is an abstract superclass for numeric scalar types.
Integer, Long, Float and Double are subclasses of Number that bind
to a particular numeric representation.- See Also: 
- Integer, Long, Float, Double 
 
 
 Number() Number()
 
 
 doubleValue() doubleValue()
- Returns the value of the number as a double. 
 floatValue() floatValue()
- Returns the value of the number as a float. 
 intValue() intValue()
- Returns the value of the number as an int. 
 longValue() longValue()
- Returns the value of the number as a long. 
 
 
 Number
 Number 
public Number()
 
 
 intValue
 intValue 
public abstract int intValue()
- Returns the value of the number as an int.
This may involve rounding if the number is not already an integer. 
 longValue
 longValue 
public abstract long longValue()
- Returns the value of the number as a long. This may involve rounding
if the number is not already a long. 
 floatValue
 floatValue 
public abstract float floatValue()
- Returns the value of the number as a float. This may involve rounding
if the number is not already a float. 
 doubleValue
 doubleValue 
public abstract double doubleValue()
- Returns the value of the number as a double. This may involve rounding
if the number is not already a double. 
All Packages  Class Hierarchy  This Package  Previous  Next  Index