Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Is there a way with the ABS() to show % of the differenc
Message
 
To
02/11/2000 14:50:50
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00437296
Message ID:
00437317
Views:
12
Percent of what? If you mean, percent of the bigger number, then:

?abs(m1-m2)/max(m1,m2)*100

However, abs(m1-m2) is the absolute value of the difference,not the difference itself.

Yuri

>I want to get the abs(num1 - num2).. and have the result
>be a percent..for example...
>?abs(12-14)... the result is 2, but what percent is 2 of the two numbers?
>Robert Keith
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform