View Single Post
  #2  
Old 08-30-2011, 11:58 PM
Mark Sir Link Mark Sir Link is offline
Kevin Azite
Mark Sir Link's Avatar
Join Date: Sep 2005
Posts: 1,489
Mark Sir Link is just really niceMark Sir Link is just really nice
Send a message via AIM to Mark Sir Link
Quote:
Originally Posted by scriptless View Post
So is there any reason this is not working properly?

PHP Code:
0x7FF 512 
Output
PHP Code:

It should be 8 ????
actually it's more like 3.9 something and I guess GScript is truncating it into an int rather than rounding (int cast) so it is becoming 3.

EDIT:

GScript isn't truncating it so it must be you.

echo(0x7FF / 512);

output

3.998046875
Reply With Quote