Archive for October, 2009
Modulo and the negative divisor
I never had reason to doubt the modulo operator, but it turns out it’s been hiding a little secret from me all these years: it works differently in other programming langauges. I discovered this while converting a Python program to Flash. In Python the result of the modulo operation has the same sign as the [...]
Posted: October 24th, 2009 under Actionscript.
Comments: none