Search:

Type: Posts; User: Kewish

Search: Search took 0.10 seconds.

  1. Replies
    16
    Views
    1,040

    [SOLVED] Re: Casting int and doubles variables

    Taken from your post. Just added casting and another set of parentheses.
    int gdpPerCapitaCents = (int)((gdpPerCapita - gdpPerCapitaDollars) * 100); // 75

    Remember it does the math in the...
  2. Replies
    16
    Views
    1,040

    [SOLVED] What is .75 multiplied by 100? How would you...

    What is .75 multiplied by 100?
    How would you work that into your equation?
  3. Replies
    16
    Views
    1,040

    [SOLVED] If you're getting 0.75 as a double value. What...

    If you're getting 0.75 as a double value. What do you need to multiply that by to get 75.0? Then store as an int and you get...?

    You're nearly there.
Results 1 to 3 of 3