comp.lang.ada
 help / color / mirror / Atom feed
From: jsa@organon.com (Jon S Anthony)
Subject: Re: Integer truncation and other recipes
Date: 1996/06/08
Date: 1996-06-08T00:00:00+00:00	[thread overview]
Message-ID: <JSA.96Jun8194435@organon.com> (raw)
In-Reply-To: JSA.96May22221027@organon.com


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





      parent reply	other threads:[~1996-06-08  0:00 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-05-22  0:00 Integer truncation and other recipes Paul Shedlarski
1996-05-23  0:00 ` Jon S Anthony
1996-06-04  0:00   ` Jon S Anthony
1996-06-05  0:00     ` Norman H. Cohen
1996-06-04  0:00   ` John English
1996-06-05  0:00   ` Robert I. Eachus
1996-06-08  0:00   ` Jon S Anthony [this message]
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox