how to round a floating point number to an integer in c code example Example: round C float f = 0.5; round(f);