Documentation of 'org.matheclipse.core.interfaces.INum' Java class
INum
org.matheclipse.core.interfaces

Interface INum

    • Method Detail

      • getRealPart

        double getRealPart()
      • isNumIntValue

        boolean isNumIntValue()
        Check if this expression represents an int value. The value of an INum object can be an int value.
        Specified by:
        isNumIntValue in interface IExpr
        Returns:
      • intValue

        int intValue()
        Returns the value of this number as an int (by simply casting to type int).
        Returns:
      • toInt

        int toInt()
           throws java.lang.ArithmeticException
        Converts this double value to an int value; unlike intValue() this method raises ArithmeticException if this integer cannot be represented by an int type.
        Specified by:
        toInt in interface ISignedNumber
        Returns:
        the numeric value represented by this integer after conversion to type int.
        Throws:
        java.lang.ArithmeticException - if conversion to int is not possible.

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.