Re: [julia-users] parsing a string into several floats

2015-12-02 Thread Gabor
Milan: This is the solution for me. So float64(split(ss)) is deprecated but float(split(ss)) is not. Eric: I also see the logic, but similar code occurs at many places. I prefer as little eye clutter as possible. On Wednesday, December 2, 2015 at 11:48:41 AM UTC+1, Milan Bouchet-Valat wrote: > >

Re: [julia-users] parsing a string into several floats

2015-12-02 Thread Milan Bouchet-Valat
Le mercredi 02 décembre 2015 à 02:41 -0800, Gabor a écrit : > Let ss="10.0 20.0 30.0 90. 90. 90" > > With Julia 3.x I could do this: > v = float64(split(ss)) > > With Julia 4.0 I had to change the code to: > v = [parse(Float64,s) for s=split(ss)] > > Please advise, is there a more compact soluti

[julia-users] parsing a string into several floats

2015-12-02 Thread Gabor
Let ss="10.0 20.0 30.0 90. 90. 90" With Julia 3.x I could do this: v = float64(split(ss)) With Julia 4.0 I had to change the code to: v = [parse(Float64,s) for s=split(ss)] Please advise, is there a more compact solution?