How to get percentage ?

Posted by Iluvdotnetfunda under C# on 4/2/2012 | Points: 10 | Views : 1277 | Status : [Member] | Replies : 4
Hello Friends,

Good day,
How to get the percentage,
Example: Quiz Application

Thanks
iluvdotnetfunda




Responses

Posted by: Ksuresh on: 4/2/2012 [Member] Starter | Points: 25

Up
0
Down
Hi

Below code may helps you.

 % value = ((100 * count ) /(total count));


Thanks

Iluvdotnetfunda, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Rajni.Shekhar on: 4/2/2012 [Member] Bronze | Points: 25

Up
0
Down
double dblPercentage;
dblPercentage=(marks*100)/tot_marks

Thanks,
Rajni Shekhar

Iluvdotnetfunda, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Sabarimahesh on: 4/3/2012 [Member] Bronze | Points: 25

Up
0
Down
luvdotnetfunda
%=(Amount/TAmount)*100

Life is a Race
Thanks & Regards
By
Sabari Mahesh P M

Iluvdotnetfunda, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Rimi1289 on: 7/8/2013 [Member] Starter | Points: 25

Up
0
Down
Just try this simple tool for doing calculations like getting the "Percentage" of a value.

http://www.encodedna.com/onlinetools/percentage-calculator.htm

Iluvdotnetfunda, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response