Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Rounding differences between W2K and XP ???
Message
Information générale
Forum:
Visual Basic
Catégorie:
Installation et configuration
Divers
Thread ID:
00667375
Message ID:
00668746
Vues:
18
I am finally up and running Windows XP. I have created a partition on my laptop (so one partition is
running W2K and the other XP Pro).

I experience the same problem on my computer. So it seems to really be XP.

Try something as easy as the following line from the Immediate window:
? format(5511.49/2,"0.00")
Under W2K I get 2755.75
Under XP I get 2755.74

Can somebody else confirm it to me?

Is there anything I can change in the system settings to be sure I get the same results on both platforms?



>Eric;
>
>I have an engineering background. Having worked with computers since 1962 when I built my first main frame I separate such results into two categories – hardware and software. It could be either. In the case of hardware the CPU could easily be the cause. Greater degrees of accuracy become questionable with some chips. The only way to tell is to take the suspect computer and define which CPU it uses. Then load a different OS (the one that gives the “uniform result” on the other machines) and give it a try. You could also load the new OS on a machine that gives a “uniform result”.
>
>Hand calculators are notorious for giving different results depending upon the chip set and degree of accuracy required.
>
>Good luck! Let us know what you find.
>
>
>Tom
>
>
>>Hi
>>
>>I have a big problem this morning.
>>
>>I have an application that runs on multiple PCs (all using the same version of the application and all connected to the same database). One of them is running XP while all the others are running W2K.
>>
>>On the XP system, I have some calculations that are totalling to 8863.27 (while it is giving me 8863.26 on all other PCs).
>>
>>Anyone else found something like this? Are you aware of a setting somewhere in Windows that could affect this?
>>
>>PS: I will install Windows XP this weekend to try it.
Éric Moreau, MCPD, Visual Developer - Visual Basic MVP
Conseiller Principal / Senior Consultant
Moer inc.
http://www.emoreau.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform