Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Rounding differences between W2K and XP ???
Message
 
To
12/06/2002 12:11:50
General information
Forum:
Visual Basic
Category:
Installation, Setup and Configuration
Miscellaneous
Thread ID:
00667375
Message ID:
00667752
Views:
20
>Another try. Maybe you loose precision in intermediate calculations. Try use everywhere Double data type (or Decimal, if your calculations allow this) instead of Currency or Single.

Everything is already double and I keep only 2 digits.
dblPaidIn = Format(dblUnits / (dblUnitsTotalEnd + dblUnits) * dblPaidInTotal, "0.00")
Remember, the exact same program is running on another PC!
Éric Moreau, MCPD, Visual Developer - Visual Basic MVP
Conseiller Principal / Senior Consultant
Moer inc.
http://www.emoreau.com
Previous
Reply
Map
View

Click here to load this message in the networking platform