Possible Duplicate:
Is there a function to round a float in C or do I need to write my own?
Rounding Number to 2 Decimal Places in C
I am looking for a function in c which could round my float variable to another float variable with two digits after the decimal point, help and demonstrate please. thank you
Update: I need this function for calculation purpose, not for printing.