def _is_float(value):
try:<EOL><INDENT>float(value)<EOL><DEDENT>except ValueError:<EOL><INDENT>return False<EOL><DEDENT>else:<EOL><INDENT>return True<EOL><DEDENT>
Use casting to check if value can convert to a `float`.