wolfdawn
2
Q:

unity round

Mathf.Round(10.2f);
5
        // Prints 10
        Debug.Log(Mathf.Round(10.0f));

        // Prints 10
        Debug.Log(Mathf.Round(10.2f));

        // Prints 11
        Debug.Log(Mathf.Round(10.7f));
0

New to Communities?

Join the community