Calculate percentage of two numbers in C#

amine
 
on Feb 01, 2013 04:15 AM
19252 Views

hello,

I want to know how to calculate the percentage of 2 numbers with C #

for example I have 52 work to do and I made only 46 work so I want to know how to calculate the work avencemant !!

Download FREE API for Word, Excel and PDF in ASP.Net: Download
Mustafa
 
on Feb 01, 2013 04:19 AM
on Feb 01, 2013 04:20 AM

To calculate the percentage we do not have and special method in c# but you can try this

int IntLocPercentage = 0;

IntLocPercentage = (46/52)*100;