Mill Computing, Inc. › Forums › The Mill › Architecture › Specification › Reply To: Specification
Is there a plan for SIGNED divisions? The ainsi C specs for division of SIGNED are good but it exist an other kind of SIGNED division. When computing A/B and A%B, C say something like:
[1+abs(A/B)] * abs(B) > abs(A) >= abs(A/B) * abs(B)
But the euclidian division specify that
abs(B) > A%B >= 0
Then for C: -10/3=-3 and -10%3=-1
But for euclidian: -10/3=-4 and -10%3=2
If specification is “easy”, do you intend to have 2 signed divisions?
note ** https://en.wikipedia.org/wiki/Euclidean_division#Examples