Package java.lang

Class Number

    • Constructor Detail

      • Number

        public Number()
    • Method Detail

      • byteValue

        public byte byteValue()
        Returns the value of the specified number as a byte. This may involve rounding or truncation.
        Returns:
        the numeric value represented by this object after conversion to type byte.
      • doubleValue

        public abstract double doubleValue()
        Returns the value of the specified number as a double. This may involve rounding.
        Returns:
        the numeric value represented by this object after conversion to type double.
      • floatValue

        public abstract float floatValue()
        Returns the value of the specified number as a float. This may involve rounding.
        Returns:
        the numeric value represented by this object after conversion to type float.
      • intValue

        public abstract int intValue()
        Returns the value of the specified number as an int. This may involve rounding or truncation.
        Returns:
        the numeric value represented by this object after conversion to type int.
      • longValue

        public abstract long longValue()
        Returns the value of the specified number as a long. This may involve rounding or truncation.
        Returns:
        the numeric value represented by this object after conversion to type long.
      • shortValue

        public short shortValue()
        Returns the value of the specified number as a short. This may involve rounding or truncation.
        Returns:
        the numeric value represented by this object after conversion to type short.