Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Faster (0 - num) or (num * -1)
Message
 
À
20/11/2003 16:25:26
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00851967
Message ID:
00852248
Vues:
14
Fabio said that too, i just don't know why i never tried that myself, maybe i am loosing my mind in my old age:-)
Slán
~M

>>hi,
>>just a quick query as to what is the fastest way to get a negative of a specified number.
>>is it
>>x = 7
>>x * (-1)
>>OR
>>x = 7
>>0 - x
>
>Really don't have the time or inclination to write a test over a few microseconds... I'm jumping in here because I'm amazed that nobody tried the simple -x.
>
>I mean, haven't you guys ever written a line like this?
>
y=-x
>
>(update: I see that Fabio did. It was just absent from the rest of the thread.)
Go raibh maith agat

~M
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform