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.2 required=5.0 tests=BAYES_00,INVALID_MSGID, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,84fc3034a93e6499,start X-Google-Attributes: gid103376,public From: Jeff Carter Subject: Re: Misc problems Date: 2000/01/30 Message-ID: <3894852E.8AF373BB@earthlink.net>#1/1 X-Deja-AN: 579622834 Content-Transfer-Encoding: 7bit References: X-Accept-Language: en Content-Type: text/plain; charset=us-ascii X-ELN-Date: Sun Jan 30 12:39:29 2000 X-Complaints-To: abuse@earthlink.net X-Trace: newsread1.prod.itd.earthlink.net 949264769 63.11.145.80 (Sun, 30 Jan 2000 12:39:29 PST) Organization: EarthLink Network, Inc. MIME-Version: 1.0 Reply-To: jrcarter@acm.org NNTP-Posting-Date: Sun, 30 Jan 2000 12:39:29 PST Newsgroups: comp.lang.ada Date: 2000-01-30T00:00:00+00:00 List-Id: Jan Kroken wrote: > Second, there's something wrong with the math of the stars demo. > Probably because I didn't know how to implement > C.Int := Floor(C.Double), so I just used C.Int = C.Int(C.Double);. > How do one implement Floor? Check out the attributes of floating-point types (ARM A.5.3), where you will find the attributes 'Floor and 'Ceiling. Assuming the declarations I : C.Int; D : C.Double; what you want is I := C.Int (C.Double'Floor (D) ); -- Jeff Carter "I waggle my private parts at your aunties." Monty Python & the Holy Grail