float vs double swift code example
Example 1: swift double v float
Double is 64-bit // stores more precise decimal number
Float is 32-bit
Example 2: what is the difference in float and double in xcode
float and doubles are different to ints because they can hold decimals whereas ints can't the main difference between a float and double is that doubles can store more decimals