def __float(value):
 (valid, _value) = (False, value)
 try:
  _value = float(value)
  valid = True
 except ValueError:
  pass
 return (valid, _value, 'float')

def __float ( value ) : ( valid , _value ) = ( False , value ) try : _value = float ( value ) valid = True except ValueError : pass return ( valid , _value , 'float' )
validate a float .