Check out example codes for "cast from float to long c". It will help you in understanding the concepts better.

Code Example 1

float a = 1.0;
long b = (long)a // variable b now equals variable a which has been cast to long

Learn ReactJs, React Native from akashmittal.com