Contents

toUInt32()

Converts the JavaScript value to a native unsigned integer value.

Declaration

func toUInt32() -> UInt32

Return Value

The native unsigned 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.

See Also

Reading and Converting JavaScript Values