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
From
03/11/2000 11:19:36
 
 
To
03/11/2000 11:13:06
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00437296
Message ID:
00437675
Views:
19
>>>>>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?
>>>>
>>>>2 is 14.29% of 14, 16.67% of 12
>>>-------------
>>>Hi Steve..
>>>Is there a function in vfp60 that will give me the 14.29%?
>>
>>For division, use: /
>>
>>2/14*100 = 14.29
>
>And to make sure you're selecting the largest number to get the percentage of...
>
>MAX(num1, num2) / (ABS(num1 - num2)
-----
ok Tom....thanks.....:))
Robert Keith
Independent Developer
San Antonio, Texas
E-mail address:
rebelrob1@yahoo.com
Previous
Reply
Map
View

Click here to load this message in the networking platform