>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.netAccumulate learning by study, understand what you learn by questioning. -- Mingjiao