Check out example codes for "how to make a float in C++". It will help you in understanding the concepts better.

Code Example 1

public float whatYourFloatIsCalled = 0;
public float whatIsYourFloat;

Learn ReactJs, React Native from akashmittal.com