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,6a77269912f77a70 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-10-24 09:07:28 PST Path: archiver1.google.com!news2.google.com!news.maxwell.syr.edu!hammer.uoregon.edu!skates!not-for-mail From: Stephen Leake Newsgroups: comp.lang.ada Subject: Re: Why no 'Floor for fixed point types Date: 24 Oct 2003 12:00:21 -0400 Organization: NASA Goddard Space Flight Center (skates.gsfc.nasa.gov) Message-ID: References: <3F98508F.2030300@comcast.net> NNTP-Posting-Host: shevek.gsfc.nasa.gov Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: skates.gsfc.nasa.gov 1067011435 16762 128.183.235.101 (24 Oct 2003 16:03:55 GMT) X-Complaints-To: usenet@news.gsfc.nasa.gov NNTP-Posting-Date: 24 Oct 2003 16:03:55 GMT User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 Xref: archiver1.google.com comp.lang.ada:1608 Date: 2003-10-24T16:03:55+00:00 List-Id: "Robert I. Eachus" writes: > type Radians is delta Pi/1000 range -Pi..Pi; > for Radians'small use Pi/1000; > > where the only integer value of the type is zero. > > For type Radians what should Radians'Floor return? An Integer, that is the truncated value. Hmm, I guess it needs to be generic, so you can specify which integer type to use for the result. -- -- Stephe