I've been assigned to output a double:
myD=1.0/3.0; //using println as 0.33333334 = 1/3.
I have tried to use a little bit of formatting with no success.
//0.33333334 = 1/3; //only using println
double myD = 1.0/3.0
System.out.println("%0.8f", myD);
0.33333334