Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Decimal precision is of a variable
Message
 
To
15/09/1998 10:25:29
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00136301
Message ID:
00137171
Views:
27
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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform