Skip to content

Instantly share code, notes, and snippets.

@make-github-pseudonymous-again
Last active August 29, 2015 14:01
Show Gist options
  • Save make-github-pseudonymous-again/a40f76f2165ebeb506bd to your computer and use it in GitHub Desktop.
Save make-github-pseudonymous-again/a40f76f2165ebeb506bd to your computer and use it in GitHub Desktop.
The Python way...
def willitfloat(s):
try:
float(s)
return True
except ValueError:
return False
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment