>Hi Everybody,
>
>I would like to shift a number between 0-255 to the left 24 times. When I do the following for example:
>
>
? bitlshift(0xff, 24)
>
>I should get: 4278190080
>
>However, I get the following number instead:
>-16777216
>
>How can I correct it?
>
>Thank you,
>Ali
The correct expression for transform a signed into unsigned it is:
? (0x100000000+bitlshift(0xFF, 24))%0x100000000
? (0x100000000+bitlshift(0x7F, 24))%0x100000000