Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Invert a numeric value
Message
De
14/04/2005 10:28:35
 
 
À
14/04/2005 09:38:38
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 7
OS:
Windows 2000 SP4
Divers
Thread ID:
01004535
Message ID:
01004654
Vues:
14
Excellent! Short and sweet.

Glenn

>>
>>x = 12345
>>x = 0 - x  && Invert the sign x = -12345
>>x = 0 - x  && Invert the sign x = +12345
>>
>
>While this should give you the correct solution, the zero is not really required: x = -x is enough.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform