Running this program with perl 5:

my $i = int(1.9);
print "i=$i\n";

produces the answer 1 (i.e. it truncates) while running it with Pugs
produces the answer 2 (i.e. it rounds).

Is this a bug or a feature?
If a feature, how does one truncate with Pugs/Perl6?

/-\


Find local movie times and trailers on Yahoo! Movies.
http://au.movies.yahoo.com

Reply via email to