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: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Jeremy North
Sent: Thursday, 24 January 2008 2:27 p.m.
To: [EMAIL PROTECTED]; 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: [email protected]
Admin: http://delphi.org.nz/mailman/listinfo/delphi
Unsubscribe: send an email to [EMAIL PROTECTED] with
Subject: unsubscribe

_______________________________________________
NZ Borland Developers Group - Delphi mailing list
Post: [email protected]
Admin: http://delphi.org.nz/mailman/listinfo/delphi
Unsubscribe: send an email to [EMAIL PROTECTED] with Subject: unsubscribe

Reply via email to