Site search

Categories

October 2009
M T W T F S S
« Aug   Dec »
 1234
567891011
12131415161718
19202122232425
262728293031  

Friends

Archive for October 24th, 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 [...]