Number class

The abstract class 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.


The declaration of Number class is:

public abstract class Number
extends Object
implements Serializable

Methods from Number class

bytebyteValue()Returns the value as a byte.
abstract doubledoubleValue()Returns the value as a double.
abstract floatfloatValue()Returns the value as a float.
abstract intintValue()Returns the value as an int.
abstract longlongValue()Returns the value as a long.
shortshortValue()Returns the value as a short.  |  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.