Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Currency averages
Message
De
06/12/1999 12:04:01
 
 
À
06/12/1999 11:46:47
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Divers
Thread ID:
00297955
Message ID:
00299220
Vues:
19
>The format of my control is numeric, it works if I don't don't put any digits in the format part of the control. Except I get 4 numbers after the decimal point. If I change it to currency, I get the CR for the control. I have made the control and the number of digits quite large. The only way it works is if it is numeric or character. Once I put in the number of digits it doesn't work. I am putting in 9999.99 This is large enough for what I need and I only want two decimal places not four. Do you know why any of this is happening?
>

Try performing your average operation on the MTON() of the currency field - this will convert the currency data type into a numeric. You may be running into problems with the fixed precision and sizing of currency computations (use of the currency data type in a computation force the result into the currency data type) and using the MTON() may work around this.

With addition/subtraction, precision is not a major problem, but in order to compute an average, there's division involved...
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform