toUnsignedInt

Converts the argument to an int by an unsigned conversion. In an unsigned conversion to an int, the high-order 24 bits of the int are zero and the low-order 8 bits are equal to the bits of the byte argument.

Consequently, zero and positive byte values are mapped to a numerically equal int value and negative byte values are mapped to an int value equal to the input plus 28.

Return

the argument converted to int by an unsigned conversion

Since

1.8

Parameters

x

the value to convert to an unsigned int


Converts the argument to an int by an unsigned conversion. In an unsigned conversion to an int, the high-order 16 bits of the int are zero and the low-order 16 bits are equal to the bits of the short argument.

Consequently, zero and positive short values are mapped to a numerically equal int value and negative short values are mapped to an int value equal to the input plus 216.

Return

the argument converted to int by an unsigned conversion

Since

1.8

Parameters

x

the value to convert to an unsigned int