[DUG] Count

David Brennan dugdavid at dbsolutions.co.nz
Thu Jan 24 16:12:17 NZDT 2008


Of course it should still work when iVersion is 1.5 since the floating point
accuracy should be much greater than 0.1. 

But if the problem was when iVersion was 1.4 (and it looks like the code was
intended to be used with iVersion = 1.4) then indeed the code is buggy as
written due to problems with comparing floating point values as Mr J says.

;-)

David.


-----Original Message-----
From: delphi-bounces at listserver.123.net.nz
[mailto:delphi-bounces at listserver.123.net.nz] On Behalf Of Jeremy North
Sent: Thursday, 24 January 2008 2:27 p.m.
To: vss at vss.co.nz; NZ Borland Developers Group - Delphi List
Subject: Re: [DUG] Count

> Thats GOT to be a compiler issue. It def. compiles in the code example
> above, it just didnt evaluate properly....weired....and quite frustrating
!

Actually that is a computer issue.

Do a google search for "epsilon" and comparing floating point values.
_______________________________________________
NZ Borland Developers Group - Delphi mailing list
Post: delphi at listserver.123.net.nz
Admin: http://delphi.org.nz/mailman/listinfo/delphi
Unsubscribe: send an email to delphi-request at listserver.123.net.nz with
Subject: unsubscribe



More information about the Delphi mailing list