Creates a new value from the given floating-point literal.
- Xcode 6.1+
- Swift Standard Library
The new floating-point value.
Do not call this initializer directly. It is used by the compiler when you create a new
Float instance by using a floating-point literal. Instead, create a new value by using a literal.
In this example, the assignment to the
x constant calls this initializer behind the scenes.