The answer is still valid,

Code:
printf("%.2f", f);
Puts your floating point number into the output buffer as a string of the number to two decimal places.