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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,ac48cedaf5c5cba3 X-Google-Attributes: gid103376,public From: jsa@organon.com (Jon S Anthony) Subject: Re: Integer truncation and other recipes Date: 1996/06/08 Message-ID: #1/1 X-Deja-AN: 159215695 sender: news@organon.com (news) references: <4nv3tmINNql5@oasys.dt.navy.mil> organization: Organon Motives, Inc. newsgroups: comp.lang.ada Date: 1996-06-08T00:00:00+00:00 List-Id: In article <4p4atg$tc5@watnews1.watson.ibm.com> ncohen@watson.ibm.com (Norman H. Cohen) writes: > Duration(Float'Floor(Float(Now)/60.0)) is a poor substitute for > Duration'Floor(Now/60.0). In what respect? Losing what you are really after in a sea of extraneous junk? If so, the simple fix is to put it in a function (yeah, I know, everyone will have to hack this one off). > I think the failure to generalize certain of the floating-point > attributes to fixed-point types was an unfortunate oversight. Well, I certainly won't disagree with this. /Jon -- Jon Anthony Organon Motives, Inc. 1 Williston Road, Suite 4 Belmont, MA 02178 617.484.3383 jsa@organon.com