How do you create a float? Swift 5.1
Depending on what kind of accuracy you require with your floating-point number a double will be more precise than a float.
The double has precision of at least 15 decimal digits while the float has as little as six decimal digits.
var floatNum:Float = 1.123456789874561
var doubleNum:Double = 1.123456789874561
Tag:Swift 5.1, Swift Tutorials