Add float rounding function.