(self)
return float(s)
Float representation.
Float representation.
Float representation .
def __float__(self):
        """Float representation."""
        if self._isnan():
            if self.is_snan():
                raise ValueError("Cannot convert signaling NaN to float")
            s = "-nan" if self._sign else "nan"
        else:
            s = str(self)
        return float(s)
def __float__ ( self ) : if self . _isnan ( ) : if self . is_snan ( ) : raise ValueError ( "Cannot convert signaling NaN to float" ) s = "-nan" if self . _sign else "nan" else : s = str ( self ) return float ( s )