Porting a Perl Skript to Python get wrong result with big numbers and modulo -
at moment port script perl python, somehow, strange behaviour modulo calculation.
32185864684058608501682550623 % 62
in perl 6 result , python 25l.
is there somehow way number 6?
also python3 same result.
perl's built-in support large numbers not great. answer of 6 due overflow. compare
$ perl -e 'print 32185864684058608501682550623 % 62, "\n"' 6 $ perl -mbignum -e 'print 32185864684058608501682550623 % 62, "\n"' 25
Comments
Post a Comment