From: Duncan Sands <baldrick@free.fr>
To: Stephen Leake <Stephe.Leake@nasa.gov>, comp.lang.ada@ada-france.org
Subject: Re: Why no 'Floor for fixed point types
Date: Fri, 24 Oct 2003 20:13:08 +0200
Date: 2003-10-24T20:13:08+02:00 [thread overview]
Message-ID: <mailman.210.1067019171.25614.comp.lang.ada@ada-france.org> (raw)
In-Reply-To: <ullrawrqi.fsf@nasa.gov>
On Friday 24 October 2003 18:00, Stephen Leake wrote:
> "Robert I. Eachus" <rieachus@comcast.net> 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.
Though given the amazing rules for multiplication of different fixed point
types (result type determined by the context), I doubt that would stop
a determined language designer...
Thanks for your comments,
Duncan.
next prev parent reply other threads:[~2003-10-24 18:13 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-10-23 20:09 Why no 'Floor for fixed point types Duncan Sands
2003-10-23 22:06 ` Robert I. Eachus
2003-10-24 16:00 ` Stephen Leake
2003-10-24 18:13 ` Duncan Sands [this message]
2003-10-23 23:10 ` Martin Dowie
2003-10-24 21:46 ` Nick Roberts
2003-10-25 4:29 ` Robert I. Eachus
2003-10-25 20:42 ` Nick Roberts
2003-10-25 22:40 ` Robert I. Eachus
2003-10-27 18:59 ` Randy Brukardt
2003-10-28 1:19 ` Robert I. Eachus
2003-10-28 18:23 ` Nick Roberts
2003-10-28 18:34 ` Stephane Richard
2003-10-29 19:26 ` Randy Brukardt
2003-10-30 4:55 ` Robert I. Eachus
2003-10-28 18:10 ` Nick Roberts
2003-10-27 18:49 ` Randy Brukardt
2003-10-28 18:32 ` Nick Roberts
2003-10-29 19:29 ` Randy Brukardt
2003-10-30 23:41 ` Nick Roberts
2003-10-31 22:25 ` Randy Brukardt
2003-11-06 2:41 ` Nick Roberts
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox