toInt32()
Converts the JavaScript value to a native signed integer value.
Declaration
func toInt32() -> Int32Return Value
The native signed 32-bit integer value.
Discussion
This method uses JavaScript type coercion to convert the value to a JavaScript integer value, then returns a native representation of the result. In JavaScript, all numeric values are treated as double-precision floating-point numbers except for certain operations such as bit shifts.