Hi,

I'm trying to find a prebuit cpp function (or C) which manipulates output:
for the input of
Code:
double a = 1.55555555
 b= (manipulated a)
cout << b;
i would like the output to be
1.56
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?

Thanks