DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
python check if string is float
import re if re.match(r'^-?d+(?:.d+)$', element) is None: print "Not float"
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#python
#check
#string
#float
ADD COMMENT
Topic
COMMENT
Name
4+6 =
Submit