Search:

Type: Posts; User: helloworld922

Search: Search took 0.10 seconds.

  1. Re: Possible loss of precision (double/int)

    You're not re-asking the user to input a new hours worked in the while loop. You can either ask the user for a new hours worked at the end of the while loop, or remove the while loop all together.
  2. Re: Possible loss of precision (double/int)

    declared != initialized
    declared means you simply state that the variable exists. Initialized means that you actually assigned a value to that variable.

    In Java, you must both declare and...
  3. Re: Possible loss of precision (double/int)

    There are two primary ways computers represent numbers: as an integer (i.e. -1,0,1,2,3,...), or as a floating point number (1.23, 1.5, -1.5, etc.).

    In Java, the compiler will automatically...
Results 1 to 3 of 3