Skip to content

Commit

Permalink
[euler] more int() removal
Browse files Browse the repository at this point in the history
  • Loading branch information
moritz committed Dec 8, 2009
1 parent 34a0c55 commit e0c229c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion euler/prob052-duff.pl
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
$s eq (5*$n).comb.sort &&
$s eq (6*$n).comb.sort;
$n++;
if log10(6*$n).int > log10(2*$n).int {
if log10(6*$n).Int > log10(2*$n).Int {
$mag *= 10;
$n = $mag;
}
Expand Down
2 changes: 1 addition & 1 deletion euler/prob063-polettix.pl
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ (@x is copy, $y)
my $rest = 0;
for @x -> $x is rw{
$x = $x * $y + $rest;
$rest = int($x / $limit);
$rest = $x div $limit;
$x %= $limit;
}
push @x, $rest if $rest;
Expand Down

0 comments on commit e0c229c

Please sign in to comment.