Check out example codes for "unity cast float to int". It will help you in understanding the concepts better.

Code Example 1

//(int) casts float or int after it to an int
intVar = (int)var

Learn ReactJs, React Native from akashmittal.com