I'm looking around a bit and seeing some stuff about using pound signs to designate how many decimal points will be printed out. Anyone know anything about this?
edit:
This post cleared it up for...
Type: Posts; User: nadrii
I'm looking around a bit and seeing some stuff about using pound signs to designate how many decimal points will be printed out. Anyone know anything about this?
edit:
This post cleared it up for...
Ooo, that worked! I realized just now I had set E to a float a while back as I was trying to solve this problem. Converting them to doubles using this method worked though.
My only issue now,...
int test1, test2;
test1 = (int) Double.parseDouble(Integer.toString(A));
test2 = (int) Double.parseDouble(Integer.toString(B));
C = test1 / test2;
System.out.print("The value of C is " + C +...
Well right now I'm trying the following:
A = (int) Double.parseDouble(Integer.toString(A));
B = (int) Double.parseDouble(Integer.toString(B));
C = A / B;
System.out.print("The value of C is...
The entire program works just fine. I've scanned in two separate integers using two separate print statements. They're now stored in two separate variables, let's say A and B (for reference).
I...
Hello. I'm new here and simply looking for help to a problem I'm having.
I have a program requesting user input for two variables as integers. I then have a third variable set as a double that I...