Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Bitlshift(0xff, 24) doesn't work for me!
Message
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Bitlshift(0xff, 24) doesn't work for me!
Environment versions
Visual FoxPro:
VFP 6 SP5
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
00954994
Message ID:
00954994
Views:
48
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
Next
Reply
Map
View

Click here to load this message in the networking platform