Search:

Type: Posts; User: Scotty

Search: Search took 0.40 seconds.

  1. Replies
    2
    Views
    1,065

    Re: Output of 0 or 100?

    Sorry, very tried, they all need to be doubles xD.
  2. Replies
    2
    Views
    1,065

    Output of 0 or 100?

    int newReading = 600;
    int ReadingA = 780;
    int ReadingB = 260;


    double FinReading = ((newReading-ReadingB)/(ReadingA-ReadingB))*100;

    System.out.print(FinReading);
Results 1 to 2 of 2