calculating percentages

This is a discussion on calculating percentages within the C Programming forums, part of the General Programming Boards category; can anyone help me, how can you calculate the percentage of a number using c for example 289.78 + 17.5%. ...

  1. #1
    hen
    hen is offline
    Registered User
    Join Date
    Jun 2002
    Posts
    16

    Angry calculating percentages

    can anyone help me, how can you calculate the percentage of a number using c for example 289.78 + 17.5%. it may seem simple to someone out there but its been driving me mad.

  2. #2
    . Driveway's Avatar
    Join Date
    May 2002
    Posts
    469
    so you want to add 17.5% of 298.78 to 298.78?

  3. #3
    hen
    hen is offline
    Registered User
    Join Date
    Jun 2002
    Posts
    16
    its that simple

  4. #4
    . Driveway's Avatar
    Join Date
    May 2002
    Posts
    469
    You should be able to fugure that out yourself. Think about it:
    17.5% of 289.78 is 0.175 * 289.78. The total of them is:
    289.78+ (0.175*289.78)=?

  5. #5
    End Of Line Hammer's Avatar
    Join Date
    Apr 2002
    Posts
    6,231
    Or even easier to add 17.5%:
    289.78 * 1.175 = ....
    When all else fails, read the instructions.
    If you're posting code, use code tags: [code] /* insert code here */ [/code]

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Calculating : high numbers
    By MiraX33 in forum C++ Programming
    Replies: 9
    Last Post: 06-08-2006, 11:08 PM
  2. Calculating CPU Usage
    By vitaliy in forum Linux Programming
    Replies: 3
    Last Post: 08-21-2005, 09:38 AM
  3. Recursion
    By Lionmane in forum C Programming
    Replies: 11
    Last Post: 06-04-2005, 12:00 AM
  4. Taking input while calculating
    By Unregistered in forum C Programming
    Replies: 1
    Last Post: 07-12-2002, 04:47 PM
  5. Calculating window sizes
    By Mox in forum Windows Programming
    Replies: 3
    Last Post: 11-08-2001, 08:17 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21