Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Prevent VFP from rounding up numeric fields
Message
 
À
26/08/2002 15:44:19
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00693785
Message ID:
00693919
Vues:
17
>>I have a table with several numeric fields that require
>>9 decimal places, how do I prevent VFp form rounding up
>>numbers?
>Have you tried the Double data type?

Note: you can force memory variables to Double by multiplying them by 1.0 stored in a Double field.
CREATE CURSOR forceDbl (bDbl B(9))
INSERT INTO forceDbl VALUES (1)
lnDouble = 1.0000000000023 * forceDbl.bDbl  && Contrived, but you get the idea
My blog
My consulting page
My home page

Member of the Trim Your Auto-Quote Campaign!
What's another word for thesaurus?
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform