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:
00669281
Views:
17
1. Because you compare numbers, SET EXACT does not affects result of compare - it affects only compare of strings.
2. As sayed in VFP help for SET DECIMALS: "Specifies the number of decimal places displayed in numeric expressions". 1/3=0.333333333333333..., so 0.33 != 0.3333333333333333...

Plamen Ivanov
MCSD .NET Early Achiever and MCAD .NET Charter Member (VB .NET/SQL Server 2000)
MCSD (VB 6.0/SQL Server 2000)

VB (.NET) - what other language do you need in the whole Universe?...

Previous
Reply
Map
View

Click here to load this message in the networking platform