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,cafc372bafbed3f1 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-04-17 15:17:47 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!easynet-quince!easynet-monga!easynet.net!proxad.net!freenix!enst.fr!melchior!cuivre.fr.eu.org!melchior.frmug.org!not-for-mail From: Samuel Tardieu Newsgroups: comp.lang.ada Subject: Re: writing an "artful" algorithm Date: Fri, 18 Apr 2003 00:17:46 +0200 Organization: TELECOM Paris Message-ID: <87vfxc4vlh.fsf@inf.enst.fr> References: NNTP-Posting-Host: beeblebrox-tun.enst.fr Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: melchior.cuivre.fr.eu.org 1050617867 11431 137.194.161.40 (17 Apr 2003 22:17:47 GMT) X-Complaints-To: usenet@melchior.cuivre.fr.eu.org NNTP-Posting-Date: Thu, 17 Apr 2003 22:17:47 +0000 (UTC) Mail-Copies-To: sam@rfc1149.net User-Agent: Gnus/5.090007 (Oort Gnus v0.07) XEmacs/21.4 (Military Intelligence, i386--freebsd) Cancel-Lock: sha1:p56AxuziBOluwRF2HfD07Lg8hGY= Xref: archiver1.google.com comp.lang.ada:36259 Date: 2003-04-18T00:17:46+02:00 List-Id: >>>>> "Sam" == Samuel Tardieu writes: Sam> -- if the result has too many digits, a duplicate digit will be Sam> -- found Oops, this comment is unnecessary (and even bogus as if it were needed, the code would need to be changed to assume a possible overflow), as we will *never* have too many digits (0<=left<10**5 and 0<=right<10**5 imply that 0<=left*right<10**10). Sam -- Samuel Tardieu -- sam@rfc1149.net -- http://www.rfc1149.net/sam