Float: The 32-bit version of Double.

Syntax:

var x: Float

A Float is a 32-bit floating-point number which can have as few as 6 decimal digits. The Float type is used when 64-bit precision is not required. (If not declared, Swift will automatically set all floating-point numbers to be Doubles.)

let x: Float = 123.45
    // declare a constant as an type Float

var y: Float = 1.2345e2
    // declare a variable as a type Float using an explonent

var z: Float = 0x7B.73333p0
    // declare a variable as a type Float using hexadecimal (123.45 decimal)

var a,b,c : Float
    // declare multiple variables explicitly as Floats