def _ConvertFloat(value):
if value == '<STR_LIT>':<EOL><INDENT>raise ParseError('<STR_LIT>')<EOL><DEDENT>try:<EOL><INDENT>return float(value)<EOL><DEDENT>except ValueError:<EOL><INDENT>if value == _NEG_INFINITY:<EOL><INDENT>return float('<STR_LIT>')<EOL><DEDENT>elif value == _INFINITY:<EOL><INDENT>return float('<STR_LIT>')<EOL><DEDENT>elif value == _NAN:<EOL><INDENT>return float('<STR_LIT>')<EOL><DEDENT>else:<EOL><INDENT>raise ParseError('<STR_LIT>'.format(value))<EOL><DEDENT><DEDENT>
Convert an floating point number.