Integer division

Matthew P. Wiener weemba at brahms.BERKELEY.EDU
Mon Feb 10 16:53:59 AEST 1986


In article <731 at abic.UUCP> jst at abic.UUCP (Shack Toms) writes:
>However:  One might use a%b<0 iff a<0 in an algorithm which printed
>the value of an integer in a given radix.  The least significant
>digit of a in radix b would then be |a%b|.  :-)

So would |a|%b, and it works under either convention.  :-)

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



More information about the Comp.lang.c mailing list