Converts a given number to an unsigned 32-bit integer.
This function performs an addition modulo 2^32, effectively truncating the input
to fit within the range of a 32-bit unsigned integer (0 to 4,294,967,295).
If the input is negative or exceeds 32 bits, the result wraps around accordingly.
Parameters
n: number
The number to convert.
Returns number
The unsigned 32-bit integer representation of the input.
Converts a given number to an unsigned 32-bit integer.
This function performs an addition modulo 2^32, effectively truncating the input to fit within the range of a 32-bit unsigned integer (0 to 4,294,967,295). If the input is negative or exceeds 32 bits, the result wraps around accordingly.