From: dewar@merv.cs.nyu.edu (Robert Dewar)
Subject: Re: Time_Span divide question
Date: 1997/05/19
Date: 1997-05-19T00:00:00+00:00 [thread overview]
Message-ID: <dewar.864099351@merv> (raw)
In-Reply-To: EAEnCG.4E1.0.-s@inmet.camb.inmet.com
Tuck says
<<: Duration divide result: 0
That seems wrong. Unless the 'small for Duration is extremely large (i.e.
>= 1.0), D1/D2 should be just slightly less than 1 as a universal_fixed
value (the result of fixed-fixed division), and when converted to Integer,
it should be rounded (per RM95 4.6(33)).>>
That's definitely wrong. Using the latest version of GNAT on the program,
the output is:
Duration divide result: 1
Int_64 (TS1) => 495000000
Int_64 (TS2) => 500000000
Time_Span divide result: 0
next prev parent reply other threads:[~1997-05-19 0:00 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <5lg555$rba3@castor.cca.rockwell.com>
1997-05-15 0:00 ` Time_Span divide question Mark D. McKinney
1997-05-16 0:00 ` Stephen Leake
1997-05-19 0:00 ` Tucker Taft
1997-05-19 0:00 ` Robert Dewar [this message]
1997-05-21 0:00 ` Kevin Radke
1997-05-25 0:00 ` Robert Dewar
1997-05-27 0:00 ` Kevin Radke
1997-05-16 0:00 ` Robert A Duff
1997-05-16 0:00 ` Tucker Taft
1997-05-19 0:00 ` Wayne
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox