Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to get the percentage
Message
De
05/10/2007 13:53:41
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
01259001
Message ID:
01259018
Vues:
16
>thanks hilmar your reply
>
>when i use this, working
>num1=total/100
>num2=round(fail/num1,2)
>
>but i sql, if fail is=8 and total is =21 I get %tage=263 when i use
>total/fail* 100

Precisely that's why I said that you probably need it the other way. To get the number of failures as a percentage of the total, you divide as follows:
Fail / Total * 100
In this case, you will get about 38%.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform