Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Decimal precision is of a variable
Message
 
À
15/09/1998 10:25:29
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00136301
Message ID:
00137171
Vues:
26
Hi,

What i did was save the variable using sql to a dbf and use afield.

Crude but it worked.



>>Is there a command that returns the decimal precision of a variable?
>>
>>Example a=1.00 is 2 decimal
>> a=1 is 0
>>
>>TIA
>
>There can't be one, because all numeric variables are, by default, IEEE floats. You may see, sometimes, rounded or integer or currency variables, when the variable is a result of assignment or calculation from table's field, but that's temporary. Just add 0.00000001 to a variable that's supposedly integer, it will suddenly have all the decimals it needs.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform