Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ROUND()
Message
 
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00342568
Message ID:
00343389
Views:
35
>>No, It doesn't affect result.
>>
>>Try this
>>
>>SET DECIMAL TO 1
>>lnVar1 = 44/7
>>? lnVar1            && 6.3
>>SET DECIMAL TO 2
>>lnVar2 = 44/7
>>? lnVar2            && 6.29
>>? lnVar1 = lnVar2  && .T.
>>
>>DISP MEMO LIKE lnVar*
>>
>>You can see that both variables have the same internal value 6.28571429
>>
>So VFP stores some properties of a given expression (e.g. display value) as well as the expression. That seems like a waste of resources to me.

Yes, for each numeric variable Foxpro stores DIspalay Width and Decimal Places at the time when variable gets created.
--sb--
Previous
Reply
Map
View

Click here to load this message in the networking platform