parameters: (string, func=float)
return_statement: return func(string)
docstring: Parses a string as a float according to the locale settings.
docstring_summary: Parses a string as a float according to the locale settings.
docstring_tokens: Parses a string as a float according to the locale settings .
function: def atof(string, func=float):
      "Parses a string as a float according to the locale settings."
      #First, get rid of the grouping
      ts = localeconv()['thousands_sep']
      if ts:
          string = string.replace(ts, '')
      #next, replace the decimal point with a dot
      dd = localeconv()['decimal_point']
      if dd:
          string = string.replace(dd, '.')
      #finally, parse the string
      return func(string)
function_tokens: def atof ( string , func = float ) : #First, get rid of the grouping ts = localeconv ( ) [ 'thousands_sep' ] if ts : string = string . replace ( ts , '' ) #next, replace the decimal point with a dot dd = localeconv ( ) [ 'decimal_point' ] if dd : string = string . replace ( dd , '.' ) #finally, parse the string return func ( string )