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, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,b61052ba3fdc8c26 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-11-03 09:02:19 PST Path: archiver1.google.com!news2.google.com!news1.google.com!newsfeed.stanford.edu!bloom-beacon.mit.edu!nycmny1-snh1.gtei.net!washdc3-snh1.gtei.net!news.gtei.net!news.mindspring.net!not-for-mail From: Richard Riehle Newsgroups: comp.lang.ada Subject: Re: Integers and Mathematical Correctness Date: Sat, 03 Nov 2001 09:02:37 -0800 Organization: AdaWorks Software Engineering Message-ID: <3BE4232D.6CC9ACA3@adaworks.com> References: <1f26o22.1xfvwvo111pfi4N%csampson@inetworld.net> <9rrsou$bl1$1@nh.pace.co.uk> Reply-To: richard@adaworks.com NNTP-Posting-Host: 9e.fc.cc.9f Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Server-Date: 3 Nov 2001 16:58:27 GMT X-Mailer: Mozilla 4.7 [en] (Win98; I) X-Accept-Language: en Xref: archiver1.google.com comp.lang.ada:15741 Date: 2001-11-03T16:58:27+00:00 List-Id: Marin David Condic wrote: > Just because I think the Ada attributes for math (and, of course, other > stuff) are really cool things to have, I thought I'd mention: ARM Annex K > wherein you can find S'Ceiling and S'Floor. They apply to floating point > types, but they might be interesting in this context anyway. I don't know of > other languages providing so many handy mathematical attributes that let you > develop code for portability and/or precise behavior. Its one more reason > why Ada ought to be of interest to those doing mathematical/scientific > programming. In other languages, these are provided as functions. In Ada, they are attributes that behave as if they were functions. Richard Riehle