(self, rhs)
return False
Absolute values greater than.
Absolute values greater than.
Absolute values greater than .
def _abs_gt(self, rhs):
        """Absolute values greater than."""
        # don't compare zeroes
        if self.is_zero():
            return False
        rhscopy = bytearray(rhs._buffer)
        # so long as the sign is the same ...
        rhscopy[-2] &= (bytearray(self._buffer)[-2] | 0x7f)
        # ... we can compare floats as if they were ints
        for l, r in reversed(list(zip(bytearray(self._buffer), bytearray(rhscopy)))):
            if l > r:
                return True
            elif l < r:
                return False
        # equal
        return False
def _abs_gt ( self , rhs ) : # don't compare zeroes if self . is_zero ( ) : return False rhscopy = bytearray ( rhs . _buffer ) # so long as the sign is the same ... rhscopy [ - 2 ] &= ( bytearray ( self . _buffer ) [ - 2 ] | 0x7f ) # ... we can compare floats as if they were ints for l , r in reversed ( list ( zip ( bytearray ( self . _buffer ) , bytearray ( rhscopy ) ) ) ) : if l > r : return True elif l < r : return False # equal return False