I'm trying to find a prebuit cpp function (or C) which manipulates output:
for the input of
i would like the output to beCode:double a = 1.55555555 b= (manipulated a) cout << b;
in other words, I want set prescision to .2 (with sprintf,or setpressicioon, or whatever)
make sure that .5 is rounded upwards
Is there a buildin function for this in STD of MATH or is this somthing i must write?