2 ms·
Cool. So many languages get it wrong it doesn't even occur to me to check any more when learning a new language. I just assume that a mod b, where b is positive
by tzs 16y ago
Cool. So many languages get it wrong it doesn't even occur to me to check any more when learning a new language. I just assume that a mod b, where b is positive, can produce a value less than 0, and normalize the result to [0, b).