Newsgroups: comp.lang.c Path: utzoo!henry From: henry@zoo.toronto.edu (Henry Spencer) Subject: Re: Why do most C compilers poxily round towards zero ? Message-ID: <1990Oct12.161337.13581@zoo.toronto.edu> Organization: U of Toronto Zoology References: <1990Oct9.230928.27552@arp.anu.oz.au> Date: Fri, 12 Oct 90 16:13:37 GMT In article peter@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@zoo.toronto.edu utzoo!henry