comp.lang.ada
 help / color / mirror / Atom feed
From: dewar@cs.nyu.edu (Robert Dewar)
Subject: Re: Float to Fixed conversions
Date: 18 Mar 1995 20:31:14 -0500
Date: 1995-03-18T20:31:14-05:00	[thread overview]
Message-ID: <3kg1h2$eqr@gnat.cs.nyu.edu> (raw)
In-Reply-To: D5K14n.C97@lazrus.cca.rockwell.com

Wayne Magor asks about conversion of float to fixed. The disparate
behaviors of the two compilers he used are both correct. The number
in question was a non-model number which lay between two modem numbers
0.0 and 1.0 (oops thats model numbers, although I rather like the
idea of modem numbers :-)

In this situation, either 0.0 or 1.0 is a valid result, there is no
requirement for round-to-nearest (except in the case of Ada 95 decimal
types, where rounding/truncation is indeed deterministic and well
defined).




      parent reply	other threads:[~1995-03-19  1:31 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1995-03-16 22:29 Float to Fixed conversions Wayne Magor
1995-03-18 13:01 ` Tucker Taft
1995-03-20 21:29   ` Wayne Magor
1995-03-19  1:31 ` Robert Dewar [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