def _tofloat(obj):
if "<STR_LIT>" in obj.lower().strip():<EOL><INDENT>return obj<EOL><DEDENT>try:<EOL><INDENT>return int(obj)<EOL><DEDENT>except ValueError:<EOL><INDENT>try:<EOL><INDENT>return float(obj)<EOL><DEDENT>except ValueError:<EOL><INDENT>return obj<EOL><DEDENT><DEDENT>
Convert to float if object is a float string.