Why do most C compilers poxily round towards zero ?
Henry Spencer
henry at zoo.toronto.edu
Sat Oct 13 02:13:37 AEST 1990
In article <XTB6WKB at xds13.ferranti.com> peter at ficc.ferranti.com (Peter da Silva) writes:
>> One of the most frustrating things about using floating point in C is the
>> poxy way rounds floating point numbers towards zero instead of -infinity.
>
>The same problem exists with the modulus operator. Mathematically, the
>modulus operator ...
C has no modulus operator. `%' is documented in both K&R and ANSI C as
the remainder operator.
--
"...the i860 is a wonderful source | Henry Spencer at U of Toronto Zoology
of thesis topics." --Preston Briggs | henry at zoo.toronto.edu utzoo!henry
More information about the Comp.lang.c
mailing list