Search:

Type: Posts; User: cow23

Search: Search took 0.06 seconds.

  1. Replies
    4
    Views
    1,486

    Re: Java Calculation Incorrect

    double answer = 107
    * ((1.00 + (10.00 + 0) / 79.00))
    * 10.00;
    10.00 + 0 = 10.00
    10.00 / 79.00 = 0.13
    0.13 + 1.00 = 1.13
    1.13 * 10.00 = 11.3
    But it isn't, at least according to me. Can...
  2. Replies
    4
    Views
    1,486

    Java Calculation Incorrect

    Why is:

    public class Main
    {
    public static void main(String[] args)
    {
    double answer = 107
    * ((1.00 + (10.00 + 0) / 79.00))
    * 10.00;
    System.out.println(answer);
Results 1 to 2 of 2