. Advertisement .
..3..
. Advertisement .
..4..
I have tried to run the code for the unity3d round float to 2 decimals but it can not run as expected. So, offer me the solution please!
Here is a suggestion for you The result of the variable f is 3.17ffloat f = 3.16856f;
f = Mathf.Round(f * 100.0f) * 0.01f;
Here is the code I used