Information générale
Catégorie:
Codage, syntaxe et commandes
Titre:
Getting difference of two currencies as percentage
Hi folks,
Forgive me if this is a no brainer, but i'm quite new to VFP. Lets say you have two columns that are of type currency, and you'd like to know what the difference between the two is as a percentage. I.e. how much bigger/smaller is the second column? I'm thinking I might have to multiply everything by 100 and use INT(). (there doesn't seem to be a DOUBLE() or FLOAT() function?) I can figure it out with integer division, its just somewhat painful. Is there any shortcut I can use?
thanks,
noah
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement