Dear Hélio,
Thanks a lot for your explanation. Finally I understood the difference
between "i" and "$i" :-)
Um abraço,
Henrique
2014-06-29 9:14 GMT-03:00 Hélio Guilherme <helioxentric(a)gmail.com>:
Hi Henrique,
This is the correct behavior.
When you use $i, you are processing the variable as a string and then using
their processed value (with decimal comma). It happens that the processed
string is the same in the English run.
Also did the test in French and German which use the decimal comma too.
Only use the $i for showing final results, and not intermediate
calculations.
Best Regards,
Hélio
On Sun, Jun 29, 2014 at 6:14 AM, Henrique Andrade
<henrique.coelho(a)gmail.com> wrote:
>
> Dear Gretl Team,
>
> Please take a look at the following script:
>
> <hansl>
>
> # Loop 1:
>
> matrix Quantis = {}
> loop for (i=0.01; i<=1.00; i+=0.01) --quiet
> matrix Quantis = Quantis ~ $i
> endloop
> print Quantis
>
> # Loop 2:
>
> matrix Quantis = {}
> loop i = 1..99 --quiet
> matrix Quantis = Quantis ~ $i/100
> endloop
> print Quantis
>
> </hansl>
>
> Loop 1 and Loop 2 produce the same output when Gretl uses English as
> language. But when I use Gretl in Portuguese I get the following error
> message:
>
> "O símbolo ',' não é válido neste contexto
> Erro de sintaxe"
>
> The same error doesn't occur when I use "i" instead of "$i".
>
> Best regards,
> Henrique Andrade
>
> _______________________________________________
> Gretl-users mailing list
> Gretl-users(a)lists.wfu.edu
>
http://lists.wfu.edu/mailman/listinfo/gretl-users
_______________________________________________
Gretl-users mailing list
Gretl-users(a)lists.wfu.edu
http://lists.wfu.edu/mailman/listinfo/gretl-users