Search:

Type: Posts; User: Norm

Search: Search took 0.28 seconds.

  1. Replies
    7
    Views
    721

    Re: Will not average for high temp

    I use the println method to print values on the console:


    System.out.println("aH1="+aveHigh1); // show variable's value

    Add the above after the line that computes the value.
    Do the same...
  2. Replies
    7
    Views
    721

    Re: Will not average for high temp

    Try debugging the code by adding some println statements to the code where the value is computed. Print out the values of all of the inputs and the values of all the intermediate results so you can...
  3. Replies
    7
    Views
    721

    Re: Will not average for high temp

    Can you copy the output and post it here that shows what the code outputs?
  4. Replies
    7
    Views
    721

    Re: Will not average for high temp

    Is the code using integer math? 4/6 = 0
    or floating point? 4/6.0 = 0.6666
Results 1 to 4 of 4