Search
 
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
Name
4+6 =