Search:

Type: Posts; User: Norm

Search: Search took 0.12 seconds.

  1. Replies
    14
    Views
    1,688

    Re: Doubles are somehow Strings?

    Thank you. It never occurred to me to use the variable I'm defining in the expression that defines it.
    A blind spot.
  2. Replies
    14
    Views
    1,688

    Re: Doubles are somehow Strings?

    That is not quite the same as the code shown in the error message:
    double cStart = df.format(cStart);
  3. Replies
    14
    Views
    1,688

    Re: Doubles are somehow Strings?

    How can you generate the error message shown in post #1?
    Can you write some code to generate the error message as posted in #1?
    I think that the OP's error message and code do not go together.
  4. Replies
    14
    Views
    1,688

    Re: Doubles are somehow Strings?

    My problem is: How do you get that error message with the code posted???
    The only solution I can find is:


    DecimalFormat df = new DecimalFormat("#.##");
    String cStart = "12";
    ...
  5. Replies
    14
    Views
    1,688

    Re: Doubles are somehow Strings?

    The error message texts you posted do NOT go with the code you posted.

    This message says the error is at line 43 in the Course.java source file.
    When I do a Find for "double cStart =...
Results 1 to 5 of 5