Search:

Type: Posts; User: dunnage888

Search: Search took 0.10 seconds.

  1. Re: How do I change my output to 1 decimal place?

    Yess! It works thank you so much!
  2. Re: How do I change my output to 1 decimal place?

    Nope that does the same as before hmmm. Just incase this helps when I enter number 1 and number 2 I input the following:

    Enter number 1: 5.2
    Enter number 2: 16.8093

    Then this is the output...
  3. Re: How do I change my output to 1 decimal place?

    Ahhh thank you that works! However, my integerResult is now displaying 0 and no answer.
  4. Re: How do I change my output to 1 decimal place?

    The line of code redlines and displays the message

    ';' expected

    cannot find symbol
    symbol: variable number
    location: class assignment1.Casting
  5. Re: How do I change my output to 1 decimal place?

    Yeah I tried doing that but it still has a problem with that line of code. I don't get why?
  6. Re: How do I change my output to 1 decimal place?

    Everything is fine from that piece of code you gave me apart from one line of code.....

    double finalValue = number2 / number 1;

    There is an error here and the programme wont run.
  7. Re: How do I change my output to 1 decimal place?

    Sorry to be a pain but where about in the code do I put it or does that not matter?
  8. How do I change my output to 1 decimal place?

    I need a bit of help setting one of my programmes outputs to only the 1 decimal place each time the doubleResult displays it's result it is to like 12 decimal places or something like that. How do I...
Results 1 to 8 of 8