Class RatNum

    • Method Detail

      • getNumerator

        public IntNum getNumerator()
        The numerator of a rational numeral.
      • getDenominator

        public IntNum getDenominator()
        The denominator of a rational numeral.
      • getBigIntNumerator

        public BigInteger getBigIntNumerator()
        Converts the numerator of the rational to a BigInteger
      • getBigIntDenominator

        public BigInteger getBigIntDenominator()
        Converts the denominator of the rational to a BigInteger
      • toDecimalString

        public String toDecimalString​(int precision)
        Returns a string representation in decimal notation. Remarks: The result has at most precision decimal places.
      • toString

        public String toString()
        Returns a string representation of the numeral.
        Overrides:
        toString in class Expr<RealSort>