We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
hello anyone here wants to help me...i want the return value to be rounded off for example: TotalComponent=235 PartialComponent=90 per=38.3%
but with this function i always get 0 % anyone here want to sugest what should be done
unsigned int CalculatePercentage(int TotalComponent,int PartialComponent){ int per; per= (PartialComponent/TotalComponent)*100; return (float)per; }