Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Object Browser and negative hex numbers
Message
From
19/12/2001 16:43:15
 
 
To
19/12/2001 16:41:07
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00596369
Message ID:
00596466
Views:
22
>>I just tried
? -0x00000001
and VFP shows it as -1. At least it works in VFP.
>
>
>This is not doing what you think, it is evaluating 0x00000001 and then applying the unary negation operator to the result.
>
>
>? transform(-0x00000001, "@0")	&& **********
>? transform(0x00000001, "@0")	&& 0x00000001
>? transform(0xffffffff, "@0")	&& 0xffffffff
>
? 0xffffffff = -0x00000001 && .f.
Previous
Reply
Map
View

Click here to load this message in the networking platform