Package ptolemy.math

Class Overflow.Modulo

  • All Implemented Interfaces:
    java.lang.Cloneable
    Enclosing class:
    Overflow

    public static class Overflow.Modulo
    extends Overflow
    The modulo overflow strategy.
    • Method Detail

      • quantize

        public FixPoint quantize​(java.math.BigInteger integerValue,
                                 Precision precision)
        Description copied from class: Overflow
        Return a new FixPoint object based on the given BigInteger value and Precision constraint. This method will return a valid FixPoint object that conforms to the given overflow strategy implemented by the extending class.
        Specified by:
        quantize in class Overflow
        Parameters:
        integerValue - The unbounded integer value.
        precision - The Precision constraint of the quantization.
        Returns:
        A valid FixPoint value that conforms to the overflow strategy.