First time poster, and a Perl newbie. I am trying to port some code from Obj-C/Cocoa and ran into a problem with an integer overflow. In Cocoa the result (signed integer) is being wrapped to a negative. In Perl, it is not:
$result = 1729080737 + 72 * 14 * 425567; #result (Perl) = 2158052273 #result (Cocoa) = -2136915023
Is there any way I can get the same result in Perl? I have a very vague understanding of this but hope I have described the problem correctly. Thanks. /John
In reply to Integer overflow by terranullis
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |