From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-0.8 required=5.0 tests=BAYES_00,INVALID_DATE autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,18069d15345a10c8 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 1994-09-29 02:16:37 PST Path: bga.com!news.sprintlink.net!howland.reston.ans.net!europa.eng.gtefsd.com!newsxfer.itd.umich.edu!zip.eecs.umich.edu!panix!cmcl2!thecourier.cims.nyu.edu!thecourier.cims.nyu.edu!nobody From: dewar@cs.nyu.edu (Robert Dewar) Newsgroups: comp.lang.ada Subject: Re: Modulus and Remainder operations (Was Re: Help with a bit of C code) Date: 28 Sep 1994 09:56:42 -0400 Organization: Courant Institute of Mathematical Sciences Message-ID: <36bsmq$5p@gnat.cs.nyu.edu> References: <940927104030.20400d35@v22bz.npt.nuwc.navy.mil> NNTP-Posting-Host: gnat.cs.nyu.edu Date: 1994-09-28T09:56:42-04:00 List-Id: In traditional C, the result of applying / or % to negative integers is implementation dependent and hence undefined at the language level. Likely it will be remainder type semantics rather than modulus type semantics because most machines do things that way by default, but on the ICL1900 series C gave modular semantics, since that's the way the machine was. I think this is unchanged in the ANSI C standard, can someone confirm this?