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.3 required=5.0 tests=BAYES_00,FREEMAIL_FROM, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,287e8ed2b0c0aabf X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-08-02 00:21:53 PST Path: archiver1.google.com!news2.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!feed.news.nacamar.de!news.belwue.de!news.tesion.net!newsfeed-zh.ip-plus.net!news.ip-plus.net!not-for-mail From: Thomas Wolf Newsgroups: comp.lang.ada Subject: Re: Zeller's Algorithm Date: Fri, 2 Aug 2002 09:21:07 +0200 Organization: --- Message-ID: References: <3D3DED1F.24DE3AC8@lmco.com> <3D46CA0E.BCD17D9C@none.provided> <3D470EEE.811F758D@lmco.com> <719a5d07.0207310251.8f1adef@posting.google.com> Reply-To: t_wolf@angelfire.com NNTP-Posting-Host: pargate2.paranor.ch X-Trace: rex.ip-plus.net 1028272857 2400 195.65.4.190 (2 Aug 2002 07:20:57 GMT) X-Complaints-To: abuse@ip-plus.net NNTP-Posting-Date: Fri, 2 Aug 2002 07:20:57 +0000 (UTC) X-Newsreader: MicroPlanet Gravity v2.50 Xref: archiver1.google.com comp.lang.ada:27600 Date: 2002-08-02T09:21:07+02:00 List-Id: NOSPAM.lhota.adarose@verizon.net wrote: > > This may be a problem in languages > > such as C, where e.g. -30 % 7 = -2. > > Actually, the C standard does not require that (-30) % 7 == (-2). In the new 1999 ISO C standard (ISO/IEC 9899:1999), it *is* required. In the superseded ISO/IEC 9899:1990 C standard, the result was implementation-defined, either -2 or 5. -- ----------------------------------------------------------------- Thomas Wolf e-mail: t_wolf@angelfire.com