(self, rhs)
return bytearray(self._buffer)[0] > bytearray(rhs._buffer)[0]
Greater than.
Greater than.
Greater than .
def gt(self, rhs):
        """Greater than."""
        if isinstance(rhs, Float):
            # upgrade to Float
            return rhs.new().from_integer(self).gt(rhs)
        isneg = bytearray(self._buffer)[-1] & 0x80
        if isneg != (bytearray(rhs._buffer)[-1] & 0x80):
            return not(isneg)
        # compute the unsigned (not absolute!) >
        lmsb = bytearray(self._buffer)[1] & 0x7f
        rmsb = bytearray(rhs._buffer)[1] & 0x7f
        if lmsb > rmsb:
            return True
        elif lmsb < rmsb:
            return False
        return bytearray(self._buffer)[0] > bytearray(rhs._buffer)[0]
def gt ( self , rhs ) : if isinstance ( rhs , Float ) : # upgrade to Float return rhs . new ( ) . from_integer ( self ) . gt ( rhs ) isneg = bytearray ( self . _buffer ) [ - 1 ] & 0x80 if isneg != ( bytearray ( rhs . _buffer ) [ - 1 ] & 0x80 ) : return not ( isneg ) # compute the unsigned (not absolute!) > lmsb = bytearray ( self . _buffer ) [ 1 ] & 0x7f rmsb = bytearray ( rhs . _buffer ) [ 1 ] & 0x7f if lmsb > rmsb : return True elif lmsb < rmsb : return False return bytearray ( self . _buffer ) [ 0 ] > bytearray ( rhs . _buffer ) [ 0 ]