Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Why does 0.33 not equal 1/3?
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00669276
Message ID:
00669290
Views:
10
Sergey,

Thank you for the quick reply, ROUND() and set decimal cleared up the question.

Kind Regards,

Mat

>SET DECIMAL controls number of decimal places displayed not the number of decimal places in the result. You can use ROUND() function to comtrol the number of decimal places in the result.
y = ROUND(1/3,2)
>x=.33
>? x=y
>
>
Matthew Kennedy
Decision Support Technology Inc.

"I try to take one day at a time, but sometimes several days attack me all at once." ~ Ashleigh Brilliant

New Jersey Dot Net User Group
Previous
Reply
Map
View

Click here to load this message in the networking platform