i have downloaded randomly a previous version; it is setup-parrot-1.7.0.exe
setup-parrot-1.7.0-rakudo-22.exe
and yes it is working okay with any number
also i have tried the previous version 2.3.0 and it gives error results like 2.4.0
| [reply] |
sorry moritz, i have'nt the tools to build it, it needs a c compiler,
regarding the above example: in the domain of negative numbers the results is correct for any numbers
such as entering number -7 will give the results
-7
-4
thanks
| [reply] |
| [reply] |
Hi
after a lot of trials i have succeeded in installing the latest rakudo from source on windows xp, the above problem is the same, it seems prompt function adds additional letter to the right of the one digit number ,
i can get around such behaviour with this code until the problem resolved in future releases:
use v6;
my $num = prompt("Please write a number : ");
if $num.chars == 2 {$num = substr $num, 0, 1;}
say $num;
$num +=3;
say $num;
regards
| [reply] [d/l] |