Why do most C compilers poxily round towards zero ?
Henry Spencer
henry at zoo.toronto.edu
Fri Oct 12 02:17:37 AEST 1990
In article <SHIRONO.90Oct10114447 at gcx1.ssd.csd.harris.com> shirono at ssd.csd.harris.com writes:
>It is important to understand that, in type demotion, C doesn't round
>either way; it simply eliminates that which it cannot use.
This is a form of rounding (although not a very useful one). There are
half a dozen different rounding algorithms; "rounding" is not a precise
term referring to one and only one.
--
Imagine life with OS/360 the standard | Henry Spencer at U of Toronto Zoology
operating system. Now think about X. | henry at zoo.toronto.edu utzoo!henry
More information about the Comp.lang.c
mailing list