I'm trying to figure out how to round numbers at the moment.
public static void main (String [] args) {
double outsideTemperature;
outsideTemperature = 103.46432;
/* Your solution goes here */
System.out.printf("%3.6s\n", outsideTemperature);
}
}
This code yields a printout of 103.46 which is great, except that the next test that is run has a variable of 70.116 and is expecting an output of 70.12.
How do I get the answer to round up and pass both tests?