From: tmoran@bix.com
Subject: choice of fixed point type
Date: 2000/03/01
Date: 2000-03-01T00:00:00+00:00 [thread overview]
Message-ID: <zGgv4.124$zz5.13407@news.pacbell.net> (raw)
Why does
type duration is delta 1.0E-13 range 0.0 .. 0.000_1;
f : float;
i : integer := 10_000;
begin
f := float(0.000_0001/i);
ada.text_io.put_line(float'image(f));
f := float(duration'(0.000_0001)/i);
ada.text_io.put_line(float'image(f));
f := 0.000_0001/float(i);
ada.text_io.put_line(float'image(f));
print
0.00000E+00
9.94760E-12
1.00000E-11
Is <universal real> / <integer> always treated as a call on
function "/"(Left : Standard.Duration; Right : Integer)
return Standard.Duration; ?
next reply other threads:[~2000-03-01 0:00 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-03-01 0:00 tmoran [this message]
2000-03-03 0:00 ` choice of fixed point type tmoran
2000-03-04 0:00 ` Richard D Riehle
2000-03-05 0:00 ` tmoran
2000-03-06 0:00 ` Robert Dewar
2000-03-06 0:00 ` David W. Glessner
2000-03-06 0:00 ` tmoran
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox