![]() |
Hello and Welcome from to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| High Level Programming Post questions about C, C++, Java, SQL, and other programming languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How can I get a processor's CPU Percentage? | sangjinn | High Level Programming | 3 | 10-09-2008 09:28 AM |
| how to get the percentage of completion? during a copy! | wrapster | UNIX for Advanced & Expert Users | 7 | 05-24-2008 02:55 AM |
| how to make percentage of a running script? | jimmbp | Shell Programming and Scripting | 1 | 01-31-2006 02:41 PM |
| Computung Percentage | preetikate | UNIX for Dummies Questions & Answers | 2 | 02-09-2004 10:13 AM |
| percentage sign in a drive mapping ? | simon2000 | UNIX for Advanced & Expert Users | 2 | 09-17-2002 01:30 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
how do I calculate percentage ?
int percent (int a, int b)
{ if (b/a*100 > 25) return TRUE; else return FALSE; } I want to calculate what percentage of a is b. say if b = 48, a = 100 so b is 48% of a but wouldnt b/a give me 0 ??? what can be done ?? |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|