Integer division

Pete Zakel pete at valid.UUCP
Fri Feb 28 09:32:03 AEST 1986


> Is there someone out there who *wants* a/b to round towards 0 (for reasons
> that say that is the desired result)?  I asked that before and have not seen
> any affirmatives.
> 
> ucbvax!brahms!weemba	Matthew P Wiener/UCB Math Dept/Berkeley CA 94720

I do!  Mainly because I want the absolute value of (-a)/b to equal the absolute
value of a/b.
-- 
-Pete Zakel (..!{hplabs,amd,pyramid,ihnp4}!pesnta!valid!pete)



More information about the Comp.lang.c mailing list