Interface UBEReal


  • public interface UBEReal
    Interface for LRUB-encoded real value with infinity constants.
    • Method Detail

      • isZero

        boolean isZero()
        Returns if value is zero.
        Returns:
        true if value equals zero
      • getBase

        @Nonnull
        UBNatural getBase()
        Gets base part of real value.
        Returns:
        base part
      • getMantissa

        @Nonnull
        UBNatural getMantissa()
        Gets mantissa part of real value.
        Returns:
        mantissa part
      • isInfinity

        boolean isInfinity()
        Reads positive or negative infinity flag.
        Returns:
        true if value represents infinity
      • isPositiveInfinity

        boolean isPositiveInfinity()
        Reads positive infinity flag.
        Returns:
        true if value represents infinity
      • isNegativeInfinity

        boolean isNegativeInfinity()
        Reads negative infinity flag.
        Returns:
        true if value represents infinity
      • setPositiveInfinity

        void setPositiveInfinity()
        Sets value to positive infinity constant.
      • setNegativeInfinity

        void setNegativeInfinity()
        Sets value to negative infinity constant.