Integer division

Matthew P. Wiener weemba at brahms.BERKELEY.EDU
Sun Feb 9 15:58:43 AEST 1986


In article <1671 at utah-gr.UUCP> thomas at utah-gr.UUCP (Spencer W. Thomas) writes:
>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.

What about (-999999999999)/1000000000000 ?
What about (+999999999999)/1000000000000 ?

ucbvax!brahms!weemba	Matthew P Wiener/UCB Math Dept/Berkeley CA 94720



More information about the Comp.lang.c mailing list