Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Numeric value
Message
De
09/05/2000 16:38:48
 
 
À
09/05/2000 16:31:48
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00367820
Message ID:
00367834
Vues:
16
>I have the following situation. In some of my computation I will arrive at a result of say 9.975. However I do not want to round up but want to place only the 9.97 in my table. However if I have define the table as two decimals point is automatically round it up to 9.98.

You can force truncation using the FLOOR() function. To force truncation at 2 decimal places, use:

FLOOR(nNumericExpn*100)/100
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