help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: csv file problem to open


From: Ian McCallion
Subject: Re: csv file problem to open
Date: Mon, 18 Feb 2019 15:59:58 +0000

Incidentally matlab seems to have the same issue in that only '.' is
ever used as the decimal separator. The argument seems to be that
science is done this way.

However I also found this link which may provide a way forward for
interfacing to and from the real world in countries which present
numbers differently.
http://undocumentedmatlab.com/blog/formatting-numbers/

Cheers... Ian

On Mon, 18 Feb 2019 at 15:38, Ian McCallion <address@hidden> wrote:
>
> I tried to read your file using dlmread here in UK where decimal
> separator is '.' and of course it did not work correctly. In fact the
> behaviour was rather odd, because no error was reported but the digits
> after the comma were ignored. So here is a test:
>
> In Octave, if (in UK) I type
>      1.3
> Octave responds:
>      ans =  1.3000
> and if I type
>      1,3
> Octave responds:
>      ans =  1
>      ans =  3
>
> Please do the same test and report your results. Which country are you in?
>
> Cheers... Ian
>
> On Mon, 18 Feb 2019 at 13:53, mrodrig <address@hidden> wrote:
> >
> > Yes, you are rigth. But I was wondering if any posibility to read the file
> > and change the decimal separator in octave. Exist such function?
> >
> >
> >
> > --
> > Sent from: http://octave.1599824.n4.nabble.com/Octave-General-f1599825.html
> >
> >



reply via email to

[Prev in Thread] Current Thread [Next in Thread]