Last active
August 29, 2015 14:01
-
-
Save make-github-pseudonymous-again/a40f76f2165ebeb506bd to your computer and use it in GitHub Desktop.
The Python way...
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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