Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Serious Error with Currency Data Type
Message
De
18/01/1999 17:00:04
 
 
À
18/01/1999 16:49:19
Calvin Smith
Wayne Reaves Computer Systems
Macon, Georgie, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00177250
Message ID:
00177362
Vues:
47
>David,
>I appreciate your reply but please note that the decimal value in my example was a numerical and not a currency value. What I thougth would happen is that the currency value would be multiplied by the numerical and the result converted to a currency. What is happening is the numerical is being converted to a currency and then multiplied. Is this planned???

I would expect it to be; the currency data type sets the precision limit of the computation. I'd expect that I'd have to force a currency value into a numeric variable to force the computation to be done with floating point precision and then explcitly round after the computation to get the effect you describe.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform