Number Theoretic Functions | topic started 8/13/2001; 10:09:24 AM last post 8/15/2001; 8:50:23 AM |
|
|
|
Thomas R. Shemanske - Re: Number Theoretic Functions 8/15/2001; 8:50:23 AM (reads: 1754, responses: 0) |
Also, I found this piece of code in a sample problem, suggesting perl's a%b doesn't work well. sub mod { # for some reason perl's % doesn't seem to work for large numbers? my $a = shift; my $b = shift; $a - int($a/$b)*$b; } |