Integer Division
COTTRELL, JAMES
cottrell at NBS-VMS.ARPA
Wed Feb 19 10:12:35 AEST 1986
/*
> I have no objection, but *always* there should be one non-screwed-up
> definition.
I looked in the C manual expecting to find the following caveat:
" The % operator is whatever is left in the `remainder'
register by the particular divide instruxion used on
the host computer"
It was not there. As a working definition, consider it said.
I too prefer the positive remainder definition. However, as
Walter Cronkite would say, "And that's the way it is".
Programming around that fact can be done trivially & portably.
Nuff Said,
jim cottrell at nbs
*/
------
More information about the Comp.lang.c
mailing list