Check out example codes for "swift double v float". It will help you in understanding the concepts better.

Code Example 1

Double is 64-bit // stores more precise decimal number
Float is 32-bit

Learn ReactJs, React Native from akashmittal.com