On Tue, 10 Apr 2001 at 19:34:04, you wrote:
(ref: <[EMAIL PROTECTED]>)
>Hi,
>
>Can someone explain this?
>
>100 CLS
>120 d=DATE(2001,6,11,0,0,0)
>140 PRINT d
>160 d1=1.2762214E9
>180 PRINT DATE$(d)
>120 PRINT DATE$(d1)
>
>d1 is the value returned by d (line 140)
>Why doesn't line 200 return the same date as line 180?
>I tried different values for d in line 120 and changed line 160
>accordingly.. Sometimes the dates returned in lines 180 and 200 are
>identical and sometimes they aren't (and then the difference seems to be
>6m40s).
>Where have those 6m40s gone and why?
Well I corrected your code (120 == 200 of course)
Same in Minerva, and I never get the same dates.
Must be rounding error in d.
If you change 160 to:
160 d1 = d
then all is OK.
I guess when you choose different values in 120, then sometimes the
result is accurate to 8 digits.
--
QBBS (QL fido BBS 2:257/67) +44(0)1442-828255
mailto:[EMAIL PROTECTED] http://www.firshman.demon.co.uk
Voice: +44(0)1442-828254 Fax: +44(0)1442-828255
TF Services, 29 Longfield Road, TRING, Herts, HP23 4DG