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:
00343370
Views:
24
>It's NOT a BUG. According to VFP help "SET DECIMAL TO specifies the number of decimal places displayed in numeric expressions". As you can see it doesn't affect calculations.
I disagree.

The decimal setting is also affecting the result returned by a calculation, not just the display value. Once N has been set with the decimal setting of 1, issuing a SET DECIMAL TO 6 does not affect how VFP displays N. N always displays with 1 decimal place. However, if you use N in a calculation, it uses the expression.

When is X # X? Ans. when you are using VFP and SET DECIMAL TO
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