Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Is there a way with the ABS() to show % of the differenc
Message
De
03/11/2000 11:19:36
 
 
À
03/11/2000 11:13:06
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00437296
Message ID:
00437675
Vues:
27
>>>>>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform