unity c# round to 2 decimal places code example Example: unity round float to hundreths yourFloat.ToString("F2")