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=-2.3 required=5.0 tests=BAYES_00,INVALID_MSGID, MAILING_LIST_MULTI autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,f127842852d2f03a X-Google-Attributes: gid103376,public From: Christoph Grein Subject: Re: About conversions Date: 2000/11/24 Message-ID: <200011240739.IAA22865@bulgaria.otn.eurocopter.de>#1/1 X-Deja-AN: 697373069 To: comp.lang.ada@ada.eu.org Content-Type: TEXT/plain; charset=us-ascii Content-MD5: /ExciFuNP878daKm/8K3AA== X-Complaints-To: usenet@enst.fr X-Trace: menuisier.enst.fr 975067091 31086 137.194.161.2 (24 Nov 2000 11:58:11 GMT) Organization: ENST, France List-Id: comp.lang.ada mail<->news gateway X-Mailman-Version: 2.0beta5 X-BeenThere: comp.lang.ada@ada.eu.org Mime-Version: 1.0 Reply-To: comp.lang.ada@ada.eu.org NNTP-Posting-Date: 24 Nov 2000 11:58:11 GMT Newsgroups: comp.lang.ada Date: 2000-11-24T11:58:11+00:00 About -14 mod 5: > Sorry, but "mod x" always delivers values between 0 and x (x excluded). > So the result is 1 and not -4. As always 0 - X = X = 0 + X: 0 - 14 mod 5 = -14 mod 5 = -(14 mod 5) /= (-14) mod 5 = 0 + (-14) mod 5