Re: Convert string to array of floats

2008-06-19 Thread Jonno
Brilliant! Thanks. On Thu, Jun 19, 2008 at 10:00 AM, Cédric Lucantis <[EMAIL PROTECTED]> wrote: > Le Thursday 19 June 2008 17:12:08 Jonno, vous avez écrit : > > Hi, > > > > I'm very new to programming and python. > > > > I need to convert a string like this: > > ' 0.906366 2.276

Re: Convert string to array of floats

2008-06-19 Thread Cédric Lucantis
Le Thursday 19 June 2008 17:12:08 Jonno, vous avez écrit : > Hi, > > I'm very new to programming and python. > > I need to convert a string like this: > ' 0.906366 2.276152 0.01336980.773141 > 0.002836 -107.335197 0.01146286.846290\n' > to an array of floa

Convert string to array of floats

2008-06-19 Thread Jonno
Hi, I'm very new to programming and python. I need to convert a string like this: ' 0.906366 2.276152 0.01336980.773141 0.002836 -107.335197 0.01146286.846290\n' to an array of floats. Any pointers to the simplest way of doing this? Thanks. -- "If a