View Single Post
  #1  
Old 05-18-2010, 04:24 PM
fowlplay4 fowlplay4 is offline
team canada
fowlplay4's Avatar
Join Date: Jul 2004
Location: Canada
Posts: 5,200
fowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond repute
I'm currently having issues with a scripted timevar3 system, and have narrowed it down to the math involving large numbers to be at fault.

PHP Code:
//#CLIENTSIDE

function onCreated() {
  for (
temp.1temp.10temp.i++) {
    
this.scheduleevent(temp.i"MathBug""");
  }
}

function 
onMathBug() {
  
temp.largeNumber 1274191251.03// example server-side timevar2
  
echo("=========================");
  echo(
temp.largeNumber);
  echo(
timevar2);
  echo(
temp.largeNumber+timevar2);

Log:

PHP Code:
=========================
1274191251.029999972
186.784149184
1274191488
Should of been
1274191437.814149156
=========================
1274191251.029999972
187.783325184
1274191488
=========================
1274191251.029999972
188.781326272
1274191488
=========================
1274191251.029999972
189.77952576
1274191488
=========================
1274191251.029999972
190.77836608
1274191488
=========================
1274191251.029999972
191.776428224
1274191488
=========================
1274191251.029999972
192.774490368
1274191488
=========================
1274191251.029999972
193.773513792
1274191488
=========================
1274191251.029999972
194.78767392
1274191488 
__________________
Quote:
Reply With Quote