[Gretl-users] decimal separator bug

Sven Schreiber svetosch at gmx.net
Tue Sep 18 16:46:39 EDT 2007


Hi,

a nasty because potentially unnoticed bug just bit me with gretl 1.6.5
on a German windows:

Gretl was set to use the German decimal separator (comma) and so I typed
"v2 = v1 / 98,3" in the define-new-variable dialog.

However, gretl effectively seems to have calculated v1/98 without the
fractional part. For example, a value of 98,3 in v1 didn't come out as
1, but as 1,00306.

I know that in scripts one must use the decimal point, but in dialog
windows in a localized setting this is bad behavior IMHO.

Haven't tried with a newer snapshot, hope the fix makes it into 1.6.6.

thanks,
sven



More information about the Gretl-users mailing list