Great! Thank you very much, I overlooked those links you gave in your first post..
Though, try running your code with A ending in '20' instead of '11'. I get exactly the same output as before (i.e., both the regular and the scientific representation of A and B are equal), YET the result is
A...
Thanks for your answers. I have just verified that the result of
IsAGreaterThanB(98765432109876543211.0, 98765432109876543210.0)
is False! Not True, as I suspected above without having it verified.. So it seems that "a > b" and "IsAGreaterThanB(a, b)" give always the same result. Or has anyone...
Hi, could someone explain clearly what exactly Delphi does when I write "if a > b then", given that "var a, b: Extended"?
By trial and error I have found that it only checks the first 19 non-zero digits, e.g.
0.000...00001 > 0.0 is True for any number of zeros
98765432109876543220.0 >...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.