Skip to content

Instantly share code, notes, and snippets.

@danielscarvalho
Last active April 1, 2017 02:40
Show Gist options
  • Save danielscarvalho/896efedea7f7384f49063a651c5407a8 to your computer and use it in GitHub Desktop.
Save danielscarvalho/896efedea7f7384f49063a651c5407a8 to your computer and use it in GitHub Desktop.
isFloat -> Boolean
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