Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SELECT command
Message
De
15/04/2000 15:24:16
 
 
À
14/04/2000 17:56:22
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00359907
Message ID:
00360028
Vues:
11
>When I do a SELECT into a cursor or to a table it rounds the numeric fields. How can I fix that to return exactly what is?
>I tried to SET DECIAMALS but that did not help. Any suggestions?

Add a 0 result that specifies a maximal precision greater than the precision of your SET DECIMALS setting

eg:

Rather than SELECT Foo FROM bar INTO CURSOR mumble

Try SELECT Foo + 00000.0000000 AS Foo FROM bar INTO CURSOR mumble

That's equivalent to N(13,7), but if your result gets too big or you try specifying preceion > 16 places, you're a heavy favorite to be an unhappy camper because of the internal data format inability to do computation with an intermediate result of better acurracy than a DOUBLE (64 bit ANSI/Intel FP representation).

No, there's no way to do that with field wildcarding AFAIK, and you have to be careful with HAVING clauses
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