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,b61052ba3fdc8c26 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-11-05 19:52:03 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!feed2.onemain.com!feed1.onemain.com!nntp3.onemain.com.POSTED!not-for-mail From: "Eric G. Miller" Subject: Re: Integers and Mathematical Correctness Newsgroups: comp.lang.ada References: <1f26o22.1xfvwvo111pfi4N%csampson@inetworld.net> <9rrsou$bl1$1@nh.pace.co.uk> <3BE4232D.6CC9ACA3@adaworks.com> <9s68pu$9j5$1@nh.pace.co.uk> User-Agent: Pan/0.10.0.93 (Unix) Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Comment-To: "Marin David Condic" X-No-Productlinks: Yes Message-ID: Date: Mon, 05 Nov 2001 19:53:54 -0800 NNTP-Posting-Host: 216.119.36.101 X-Complaints-To: abuse@onemain.com X-Trace: nntp3.onemain.com 1005018406 216.119.36.101 (Mon, 05 Nov 2001 22:46:46 EST) NNTP-Posting-Date: Mon, 05 Nov 2001 22:46:46 EST Xref: archiver1.google.com comp.lang.ada:15897 Date: 2001-11-05T19:53:54-08:00 List-Id: In <9s68pu$9j5$1@nh.pace.co.uk>, Marin David Condic wrote: > Just a quick look at my C book here indicates that there are functions > "floor" and "ceil", but I didn't see anything like 'Mantissa and > 'Exponent and so on. Not to mention the fact that they are not exactly > connected to the data type, so there is no real distinction between, > say, a Float and a Long_Float. (I didn't even bother to check for > equivalents to things like 'Range, 'First and 'Last - althought there > are probably ways of getting there - just not nearly so slick and > convenient.) #include #include #include In C: sizeof float <= sizeof double <= sizeof long double It's all there. Granted, there are a few things where there's no analog in C that you'd have to code/check yourself (limited ranges, fixed precision).