On Thu, 26 Jan 2006, HelioSoft de Hélio Guilherme wrote:
I'm using the latest Windows snapshot, and I did a simple test
to
check how things are about the decimal point vs decimal comma
notation. So numbers must be entered with decimal point, but the
outputs are with decimal commas; is this the final decision?
In the context of a "genr" command or equivalent (series, scalar,
matrix), Yes, numbers must be entered using a decimal point. We'll
have to make that clear in the manual, and probably engineer a more
explicit error message when this is violated.
About difficulties on handling scripts saved by users using
decimal commas, should it be established that "session files
should always be saved with decimal points, and at the moment of
loading the session the numbers are filtered to reflect user
preference.", this way the interactive environment would use user
preference for inputting numbers. Or alternatively...
These are clever suggestions. I think they'd make life
over-complicated, but do others have any thoughts?
My test output was obtained using Windows version, with the
"use
locale decimal setting" checked (locale is Portuguese settings).
- -----
gretl console: type 'help' for a list of commands
? genr myvariable=1.2345678
Generated scalar myvariable (ID 5) = 1,23457
? print myvariable
myvariable = 1,23457
? genr myvariable=1,2345678
Syntax error in command line
As things stand, this is the expected and intended behaviour,
slightly odd as it may be.
Allin Cottrell