(self)
return single._normalise(exp, man, neg)
Round double to single.
Round double to single.
Round double to single .
def to_single(self):
        """Round double to single."""
        mybytes = self.to_bytes()
        single = Single(None, self._values).from_bytes(mybytes[4:])
        exp, man, neg = single._denormalise()
        # carry byte
        man += mybytes[3]
        return single._normalise(exp, man, neg)
def to_single ( self ) : mybytes = self . to_bytes ( ) single = Single ( None , self . _values ) . from_bytes ( mybytes [ 4 : ] ) exp , man , neg = single . _denormalise ( ) # carry byte man += mybytes [ 3 ] return single . _normalise ( exp , man , neg )