📅  最后修改于: 2022-03-11 14:48:42.806000             🧑  作者: Mango
// You can use .ToString("f2") to show 2 decimals of "f3" to show 3, etc.
float num = 123.24523;
Debug.Log(num.ToString("f2")); // Output: 123.24