| public abstract class java.lang Number
|
Java SE 6 |
Number is the superclass of classes
BigDecimal, BigInteger,
Byte, Double, Float,
Integer, Long, and Short.
Subclasses of Number must provide methods to convert
the represented numeric value to byte, double,
float, int, long, and
short.
| version | 1.30, 11/17/05 |
| since | JDK1.0 |
| See also | java.lang.Byte, java.lang.Double, java.lang.Float, java.lang.Integer, java.lang.Long, java.lang.Short |
| Constructors | |
|---|---|
| public | Number() |
| Methods | |||||
|---|---|---|---|---|---|
| public byte | byteValue() Details
Returns the value of the specified number as a byte.
This may involve rounding or truncation.
| ||||
| abstract public double | doubleValue() Details
Returns the value of the specified number as a double.
This may involve rounding.
| ||||
| abstract public float | floatValue() Details
Returns the value of the specified number as a float.
This may involve rounding.
| ||||
| abstract public int | intValue() Details
Returns the value of the specified number as an int.
This may involve rounding or truncation.
| ||||
| abstract public long | longValue() Details
Returns the value of the specified number as a long.
This may involve rounding or truncation.
| ||||
| public short | shortValue() Details
Returns the value of the specified number as a short.
This may involve rounding or truncation.
| ||||
| About DocWeb · Bundles · Export · Export All | Top 10 · Statistics · Login |
| About Sun · Contact · Privacy · Terms of Use · Trademarks | Java SE 6 · Copyright © 1994-2009 Sun Microsystems, Inc.All rights reserved. Use is subject to license terms |
![]() |
![]() |
|