unity rounding numbers code example Example 1: unity round Mathf.Round(10.2f); Example 2: unity round float to hundreths yourFloat.ToString("F2")