Check out example codes for "what is a float java". It will help you in understanding the concepts better.

Code Example 1

float int = 3.1415 //pi is a float because it is a decimal

Learn ReactJs, React Native from akashmittal.com