Re: 33s Rmdr Bug? Possible explanation Message #6 Posted by Andrés C. Rodríguez (Argentina) on 7 Mar 2004, 2:03 p.m., in response to message #1 by Shaun Greaney
The behavior observed by you seems consistent with an algorithm related to repetitive substraction instead of division. This may or not be correct, I think that it should be a clear definition of "reminder"...
When you use negative numbers, and check for a value to be "less" than other, the lesser number is the one with greater absolute value.
It seems that, for positive cases (both positive or both negative numbers), the 33s calculates the following:
+ 25 4: 4*6=24, the reminder is 2524=1, because 24 is the closest multiple of 4 that is less or equal than 25
+ 25 5: 5*5=25, the reminder is 2525=0, because 25 is the closest multiple of 5 that is less or equal than 25
+ 25 6: 6*4=24, the reminder is 2524=1, because 24 is the closest multiple of 6 that is less or equal than 25
Now, for negative cases (one positive and one negative number), the 33s calculates the following:
 25 4: 4*(7)=28, the reminder is 28(25)=3, because 28 is the closest multiple of 4 that is less or equal than 25
 25 5: 5*(5)=25, the reminder is 25(25)=0, because 25 is the closest multiple of 5 that is less or equal than 25
 25 6: 6*(5)=30, the reminder is 30(25)=5, because 30 is the closest multiple of 6 that is less or equal than 25
It is not very clear, but it seems consistent...
Edited: 7 Mar 2004, 2:28 p.m.
