View Single Post
  #313  
Old 05-30-2010, 09:52 PM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
PHP Code:
//#CLIENTSIDE
function onCreated() {
  
temp.24;
  
temp.0.1;
  
  
player.chat b;

24.000000096

You're right, simply echoing "24 * 0.1" doesn't produce the glitch, although very rarely do you use static numbers in scripting that aren't stored in a variable or constant.

The reason it is a problem, Stefan, is because the glitch does not exist on Mac and did not exist in v5. I'm not sure about how floating-point numbers work, but maybe your "special case rounding" needs to be fixed?

I can find places where it has an impact on literally every server. Even Kingdoms, which generally rounds numbers, has errors where items will appear to weigh 5.0000006 kg (which do not appear so on v5)..
__________________
Reply With Quote