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

Code Example 1

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

Learn ReactJs, React Native from akashmittal.com