comp.lang.ada
 help / color / mirror / Atom feed
* The AFT Attribute
@ 1986-09-16  0:32 Geoff Mendal
  1986-09-22 20:38 ` Dale Worley
  0 siblings, 1 reply; 5+ messages in thread
From: Geoff Mendal @ 1986-09-16  0:32 UTC (permalink / raw)


Hello Ada Fans,

I'm confused again.  In the LRM, 3.5.10(9) states (parenthetically)
that the value of the AFT attribute is the smallest positive N
such that (10 ** N) * T'DELTA >= 1.0.  Now, 3.5.10(15) states that
the value returned by AFT depends only on T'DELTA. [3.5.10(15) is
a "note".]

Can these two paragraphs imply a cohesive semantics for the AFT
attribute?  Using 3.5.10(9) on the following type:

  type Fix is delta 1.0 / 16.0 range 0.0 .. 1.0;

The smallest value N that satisfies the equation is 2.  But how can
one represent 1.0 / 16.0 accurately in two decimal digits?
[1.0 / 16.0 = 0.0625]

What am I missing here?

gom
-------

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~1986-09-24 15:13 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <20@<12239247219>
1986-09-22 12:44 ` The AFT Attribute stt
1986-09-24 15:13 ` stt
1986-09-16  0:32 Geoff Mendal
1986-09-22 20:38 ` Dale Worley
1986-09-24  5:11   ` Doug Bryan

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