Check out example codes for "unity round vector 3 to nearest integer". It will help you in understanding the concepts better.

Code Example 1

//Converts a Vector3 to a Vector3Int by doing a Round to each value.
Vector3Int.RoundToInt(Vector3)

Learn ReactJs, React Native from akashmittal.com