Check out example codes for "float to int c#". It will help you in understanding the concepts better.
Code Example 1
float someFloat = 42.7f;
int someInt = (int)someFloat; // 42
Code Example 2
Convert.ToInt32(float)
Learn ReactJs, React Native from akashmittal.com