Round or truncate a float number.