Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python split string into floats

floats = map(float, s.split())
#above will return map, for python3 to return list do
#floats = list(map(float, s.split()))
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #split #string #floats
ADD COMMENT
Topic
Name
4+6 =