Guest_imported
New member
- Jan 1, 1970
- 0
Is this typical behaviour for the perl modulus operator? I assume it's something to do with the size of the number.
#!/usr/local/bin/perl -w
use strict;
print abs(-6767389730); #this prints 6767389730
print "\n";
print abs(-6767389730) % 10; #this prints 5 !
print "\n";
#!/usr/local/bin/perl -w
use strict;
print abs(-6767389730); #this prints 6767389730
print "\n";
print abs(-6767389730) % 10; #this prints 5 !
print "\n";