Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Rounding differences between W2K and XP ???
Message
General information
Forum:
Visual Basic
Category:
Installation, Setup and Configuration
Miscellaneous
Thread ID:
00667375
Message ID:
00668757
Views:
17
Eric;

As a matter of interest what answer do you get if you enter:

?format(5511.49/2,"0.000")

It looks like a rounding error and interaction between the application and the operating system. If you get 2755.745 then all is well. :)


Tom

>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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform