Weird bug with Math.Floor

  • Thread starter Thread starter Matt
  • Start date Start date
M

Matt

Hi,

Using the following formula, I consistently get different
results, depending on which computer it is run on.

Dim Reso,minReso As Double

....

Math.Floor(Math.Log(Reso / minReso, 2))

with
Reso=80
minReso=10

On machine #2 the result = 2
On machine #1 the result = 3


Both machines are Win2K Adv Server (5.00.2195 SP4)
With .NET framework v1.1.4322

Machine #1 (result = 3)
AMD Athalon (XP1700+)
512 MB RAM

Machine #2 (result = 2)
Dual Xeon
6 GB RAM


Something in the environment of machine #2 has to be
different in order to explain this.

Any suggestions would be greatly appreciated.

Thanks,

Matt
 
* "Matt said:
Using the following formula, I consistently get different
results, depending on which computer it is run on.

I would ask this in a more general group as this question is not related
to the VB.NET programming language.
 
Back
Top