[Gretl-users] decimal separator bug

Allin Cottrell cottrell at wfu.edu
Wed Sep 19 09:38:09 EDT 2007


On Wed, 19 Sep 2007, Allin Cottrell wrote:

> A second element of inconsistency is that when the "locale decimal 
> separator" option is turned on, we currently accept (in fact, 
> insist on) use of the locale separator in dialog boxes that call 
> for simple numeric input...

One more small point: IF we don't decide to get rid of the locale 
decimal separator altogether, such purely numeric dialogs could be 
modified to accept either ',' or '.' in locales that don't use the 
decimal point. (Since there's no alternative use for ',' in such 
dialogs.)

Algorithm: internally, replace ',' with '.' in the input string 
then parse the number out of the string using the C locale.

Allin.


More information about the Gretl-users mailing list