Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Rounding when not wanted
Message
From
25/05/2005 12:02:49
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Rounding when not wanted
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows 2000 SP1
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01017554
Message ID:
01017554
Views:
61
Hi.
Haven't been here in a while.

Here is a strange one, to me anyway.

why is 5000 * 0.01099 = 54.95?

but
lnNum1 = 5000
lnNum2 = 0.01099

lnNum1 * lnNum2 = 55.00 ? Why is this one rounded?

TIA
The American Republic will endure, until politicians realize they can bribe the people with their own money.
- Alexis de Tocqueville

No man’s life, liberty, or property is safe while the legislature is in session.
– Mark Twain (1866)
Next
Reply
Map
View

Click here to load this message in the networking platform