Re: intdiv

new topic     » goto parent     » topic index » view thread      » older message » newer message
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 
new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu