(self, allow_double=True)
return self.to_single()
Convert double to float.
Convert double to float.
Convert double to float .
def to_float(self, allow_double=True):
        """Convert double to float."""
        if allow_double:
            return self
        return self.to_single()
def to_float ( self , allow_double = True ) : if allow_double : return self return self . to_single ( )