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=-1.9 required=5.0 tests=BAYES_00 autolearn=ham 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-07-31 15:24:04 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!colt.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!lnewspeer00.lnd.ops.eu.uu.net!emea.uu.net!server1.netnews.ja.net!pegasus.csx.cam.ac.uk!not-for-mail From: Matthew Woodcraft Newsgroups: comp.lang.ada Subject: Re: Zeller's Algorithm Date: 31 Jul 2002 23:23:46 +0100 (BST) Organization: Linux Unlimited Message-ID: <6rp*CJHup@news.chiark.greenend.org.uk> References: <3D3DED1F.24DE3AC8@lmco.com> <3D470EEE.811F758D@lmco.com> <719a5d07.0207310251.8f1adef@posting.google.com> NNTP-Posting-Host: rapun.sel.cam.ac.uk Originator: mattheww@chiark.greenend.org.uk ([212.135.138.206]) Xref: archiver1.google.com comp.lang.ada:27540 Date: 2002-07-31T23:23:46+01:00 List-Id: In article , Frank J. Lhota 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). I believe it does; that is to say, this was 'fixed' in C99. It seems likely that the C++ people will pick this up next time round. -M-