parameters: (value)
return_statement: return result
docstring: Return the value as a float or a type-specific default value if it fails.
docstring_summary: Return the value as a float or a type-specific default value if it fails.
docstring_tokens: Return the value as a float or a type - specific default value if it fails .
function: def asFloat(value):
    """
      Return the value as a float or a type-specific default value if it fails.
    """
    try:
      result = float(value)
    except TypeError:
      result = type_definition['float']['default']
    return result
function_tokens: def asFloat ( value ) : try : result = float ( value ) except TypeError : result = type_definition [ 'float' ] [ 'default' ] return result