comp.lang.ada
 help / color / mirror / Atom feed
From: Thomas Wolf <t_wolf@angelfire.com>
Subject: Re: Zeller's Algorithm
Date: Fri, 2 Aug 2002 09:21:07 +0200
Date: 2002-08-02T09:21:07+02:00	[thread overview]
Message-ID: <MPG.17b4514c3ff1885a989695@news.ip-plus.net> (raw)
In-Reply-To: kzS19.1$dz5.0@nwrddc01.gnilink.net

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




      parent reply	other threads:[~2002-08-02  7:21 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-07-23 23:56 Zeller's Algorithm Paul A Storm
2002-07-24  7:59 ` Thomas Wolf
2002-07-24 21:30   ` Paul A Storm
2002-07-29  8:29     ` Thomas Wolf
2002-07-30  4:35       ` Robert Dewar
2002-07-30  8:20         ` Thomas Wolf
2002-07-30 17:17 ` Rick Maffei
2002-07-30 22:10   ` Paul A Storm
2002-07-31 10:51     ` Thomas Wolf
2002-07-31 14:33       ` Frank J. Lhota
2002-07-31 19:13         ` Robert A Duff
2002-07-31 19:26           ` Darren New
2002-07-31 20:01             ` Hyman Rosen
2002-07-31 20:15               ` Frank J. Lhota
2002-07-31 21:08               ` Robert A Duff
2002-07-31 22:34                 ` Hyman Rosen
2002-07-31 22:57                   ` Robert A Duff
2002-08-01 15:17                     ` Hyman Rosen
2002-08-01 16:41                       ` Frank J. Lhota
2002-07-31 21:15               ` Dan Nagle
2002-07-31 22:36                 ` Hyman Rosen
2002-07-31 22:23         ` Matthew Woodcraft
2002-08-02  7:21         ` Thomas Wolf [this message]
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox