🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c
Article #2721

Re: div() & ldiv() behavior?

#2721
From: Henry Spencer
Date: Wed, 10 Apr 1991 16:33
9 lines
803 bytes
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
Technical Details
Message-ID: <1991Apr10.163301.22355@zoo.toronto.edu>
Path: arc1-ca.pugleaf.net!utzoo!henry
References: <10989@ncar.ucar.edu>

Show Full Headers
Complete Article Headers
Newsgroups: comp.std.c
Path: arc1-ca.pugleaf.net!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