Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Minus Zero
Message
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00983821
Message ID:
00984012
Views:
11
Borislav,
if ( abs( numb_1 - numb_2 ) <= EPSILON ) )
where EPSILON is a small number that means these two numbers are close enough to be the same in the context of the data values.

>As Hilmar said the difference migth be in 7th digital after decimal point. I always compare two numbers with rounding:
>
>IF ROUND(numb_1,2) == ROUND(numb_2,2)
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform