The following piece of trivial code, (drastically simplified from an
example I was trying to convert), produces different results (3rd
line) under Perl 5 and Perl 6. (Saved as t_f_int2)

    print sqrt (1.5 * 1) ;
print "\n";
    print    ((1 / 2.7) ** 1);
print "\n";

    print sqrt (1.5 * 1) *
        ((1 / 2.7) ** 1);

print "\n";

$>perl t_f_int2
1.22474487139159
0.37037037037037
0.453609211626514

$>perl6 t_f_int2
1.22474487139159
0.37037037037037
0.74535599249993

Have I found a bug or merely revealed my ignorance of a change in
precedence somewhere?

Reply via email to