Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Object Browser and negative hex numbers
Message
De
19/12/2001 16:43:15
 
 
À
19/12/2001 16:41:07
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00596369
Message ID:
00596466
Vues:
24
>>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.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform