unity slider decimal 0.01 code example
Example 1: unity slider decimal 0.01
f = Mathf.Round(f * 10.0f) * 0.1f;
Example 2: unity slider decimal 0.01
f = Mathf.Round(f * 100.0f) * 0.01f;
f = Mathf.Round(f * 10.0f) * 0.1f;
f = Mathf.Round(f * 100.0f) * 0.01f;