Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Rounding when not wanted
Message
De
25/05/2005 12:02:49
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Rounding when not wanted
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows 2000 SP1
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
01017554
Message ID:
01017554
Vues:
62
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)
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform