Hi Hilaire,

Maybe I don't understand your question, but reading floats with NeoCSV is quite 
elementary:

data := '10.5,-7.5\10.4,-7.4\10.3,-7.3\10.2,-7.2\10.1,-7.1' withCRs.

(NeoCSVReader on: data readStream)
  addFloatField;
  addFloatField;
  upToEnd.

"#(#(10.5 -7.5) #(10.4 -7.4) #(10.3 -7.3) #(10.2 -7.2) #(10.1 -7.1))"

There is even a #addFloatFieldRadixPointComma that shows how to do more custom 
number reading.

Or do you want something else ?

Sven

> On 22 Dec 2019, at 17:03, Hilaire <hila...@drgeo.eu> wrote:
> 
> Hi,
> 
> I have float number datas coming with 60, 600 and 6000 rows.
> 
> Is there a convenient way to let NeoCSV load and convert to array of floats.
> 
> So far, I am doing it by "hand" with stream?
> 
> Thanks
> 
> Hilaire
> 
> -- 
> Dr. Geo
> http://drgeo.eu
> 
> 
> 


Reply via email to