Yess! It works thank you so much!
Type: Posts; User: dunnage888
Yess! It works thank you so much!
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...
Ahhh thank you that works! However, my integerResult is now displaying 0 and no answer.
The line of code redlines and displays the message
';' expected
cannot find symbol
symbol: variable number
location: class assignment1.Casting
Yeah I tried doing that but it still has a problem with that line of code. I don't get why?
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.
Sorry to be a pain but where about in the code do I put it or does that not matter?
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...