I was wandering if anyone coulda tell me how to set a 'double' to only output to 2 decimal spots only.
For example...
double ans;
double a = 2;
double b = 3;
ans = 2/3;
Normally, as an output, it would give me, 0.66666667... How would i make it so it only gives me 0.67 ?