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:
00343377
Views:
32
>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.
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform