Extracting float from string

Spencer Ernest Doidge spencer at efn.org
Mon Jan 13 20:30:36 EST 2003


>From a previous post,
I got many good solutions to extracting an int from
'X= 445 A'.

Now what about this one?
Somewhere (we don't know where) in this input string, we expect to find a float:
':X=  0.22456  A'

How can I suck the float out of this one?


-- 
Spencer Doidge




More information about the Python-list mailing list