Creates an integer from the given floating-point value, rounding toward zero.
- Xcode 6.1+
- Swift Standard Library
A floating-point value to convert to an integer.
sourcemust be representable in this type after rounding toward zero.
Any fractional part of the value passed as
source is removed, rounding the value toward zero.
source is outside the bounds of this type after rounding toward zero, a runtime error may occur.