Last active
April 1, 2017 02:40
-
-
Save danielscarvalho/896efedea7f7384f49063a651c5407a8 to your computer and use it in GitHub Desktop.
isFloat -> Boolean
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 isFloat(value): | |
return not re.match("^[+-]?\d+?\.\d+?$", value) is None |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment