Search:

Type: Posts; User: helloworld922

Search: Search took 0.39 seconds.

  1. Replies
    5
    Views
    2,017

    Re: No Percentage?

    Yep, that's because in that second bit of code you declared the variables as doubles to begin with, and as such automatically get the use of double precision in all calculations.
  2. Replies
    5
    Views
    2,017

    Re: No Percentage?

    100%? It should be saying 0%... The reason is you're using integer mathematics with truncating decimals. This means that anytime a number evaluates to something that has a decimal, Java will...
Results 1 to 2 of 2