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:
00343806
Views:
25
Joseph,

To see what I am saying try this one;
SET DECIMAL TO 1
lnVar1 = 44/7
? lnVar1 && 6.3
SET DECIMAL TO 2
lnVar2 = lnVar1 * 1
?lnVar2
disp memo like ln*
Pay carefull attention to the two values that display memo shows you, one is formatted to the decimal setting and the other is the actual value in memory.

What we are seeing here is the very reason that I NEVER use SET DECIMALS. When I need a specific decimal precision I use the ROUND() function to make it.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform