Integer division

Spencer W. Thomas thomas at utah-gr.UUCP
Wed Feb 5 10:52:55 AEST 1986


At least C calls it '%', and not 'MOD', as in Pascal.  Unless someone
tells you that % means MOD, you have some small chance of realizing that
it might not do exactly what you want.

I would still rather have (-1)/1000000000000 = 0, not -1.
-- 
=Spencer   ({ihnp4,decvax}!utah-cs!thomas, thomas at utah-cs.ARPA)



More information about the Comp.lang.c mailing list