1 *java.lang.Number* *Number* The abstract class Number is the superclass of class
3 public abstract class Number
4 extends |java.lang.Object|
5 implements |java.io.Serializable|
7 |java.lang.Number_Description|
8 |java.lang.Number_Fields|
9 |java.lang.Number_Constructors|
10 |java.lang.Number_Methods|
12 ================================================================================
14 *java.lang.Number_Constructors*
17 *java.lang.Number_Methods*
18 |java.lang.Number.byteValue()|Returns the value of the specified number as a by
19 |java.lang.Number.doubleValue()|Returns the value of the specified number as a
20 |java.lang.Number.floatValue()|Returns the value of the specified number as a f
21 |java.lang.Number.intValue()|Returns the value of the specified number as an in
22 |java.lang.Number.longValue()|Returns the value of the specified number as a lo
23 |java.lang.Number.shortValue()|Returns the value of the specified number as a s
25 *java.lang.Number_Description*
27 The abstract class Number is the superclass of classes BigDecimal, BigInteger,
28 Byte, Double, Float, Integer, Long, and Short.
30 Subclasses of Number must provide methods to convert the represented numeric
31 value to byte, double, float, int, long, and short.
41 *java.lang.Number.byteValue()*
43 public byte byteValue()
45 Returns the value of the specified number as a byte. This may involve rounding
49 Returns: the numeric value represented by this object after conversion to type byte.
50 *java.lang.Number.doubleValue()*
52 public abstract double doubleValue()
54 Returns the value of the specified number as a double. This may involve
58 Returns: the numeric value represented by this object after conversion to type double.
59 *java.lang.Number.floatValue()*
61 public abstract float floatValue()
63 Returns the value of the specified number as a float. This may involve
67 Returns: the numeric value represented by this object after conversion to type float.
68 *java.lang.Number.intValue()*
70 public abstract int intValue()
72 Returns the value of the specified number as an int. This may involve rounding
76 Returns: the numeric value represented by this object after conversion to type int.
77 *java.lang.Number.longValue()*
79 public abstract long longValue()
81 Returns the value of the specified number as a long. This may involve rounding
85 Returns: the numeric value represented by this object after conversion to type long.
86 *java.lang.Number.shortValue()*
88 public short shortValue()
90 Returns the value of the specified number as a short. This may involve rounding
94 Returns: the numeric value represented by this object after conversion to type short.