Re: intdiv
- Posted by DerekParnell (admin) May 12, 2012
- 1563 views
bill said...
...
This function is a crock.
...
intdiv is not calculating non-empty sets.
Neither is it doing integer division.
I think what you are trying to say, in your own wonderful manner, is that the the function has a poor name and it should never return a negative count of non-empty sets.
If that is what you are saying, then I agree.
Integer Division would instead return the integer portion of the quotient, truncated towards zero. Thus
idiv( 10, 3) --> 3 idiv(-10, 3) --> -3 idiv( 10,-3) --> -3 idiv(-10,-3) --> 3