3 ms·
Don't you mean we want "(a/b) + (a%b) = a"?
by derriz 7y ago
Don't you mean we want "(a/b) + (a%b) = a"?
- kragen 7y ago> Don't you mean we want "(a/b) + (a%b) = a"? Like, 1000/1000 + 1000%1000 = 1000? That sounds like undesirable behavior for division to me.
- a1369209993 7y ago> We want a * (a/b) + (a%b) = a. > Don't you mean we want "(a/b) + (a%b) = a"? No, they mean "b * (a/b) + (a%b) = a". (Also I'm not convinced that's actually useful, but that's a different discussion.)
- derriz 7y agoHa - you’re correct of course. I saw the a^2 term and thought that can’t be right. Note to self - before attempting to correct others, check the “correction”.