Newsgroups: comp.std.c Path: utzoo!henry From: henry@zoo.toronto.edu (Henry Spencer) Subject: Re: div() & ldiv() behavior? Message-ID: <1991Apr10.163301.22355@zoo.toronto.edu> Date: Wed, 10 Apr 1991 16:33:01 GMT References: <10989@ncar.ucar.edu> Organization: U of Toronto Zoology In article <10989@ncar.ucar.edu> steve@unidata.ucar.edu (Steve Emmerson) writes: >I know what this means when both arguments are positive, but I'm uncertain >what this means for the other three cases. For the normal division operator, the results are machine-specific. For div() and ldiv(), however, the quotient is truncated towards zero. -- And the bean-counter replied, | Henry Spencer @ U of Toronto Zoology "beans are more important". | henry@zoo.toronto.edu utzoo!henry