Hey, Why do I get round float ?
I've code:
PHP Code:
new a = 6436
new b = 1544
get_float_ab()
{
return float:( a/b * 1.0 );
}
Then I'm printing it as a message:
PHP Code:
client_print(0, print_chat, "a / b = %0.1f", get_float_ab() )
And it prints:
a / b = 4.0
As the result should be 6436 / 1544 = 4.1 ( 4.168... )