Quote:
Originally Posted by Bugsy
If you want to print a float (decimal number) use %f
PHP Code:
new Float:fNum = 1.24; client_print( id , print_chat , "number is %f" , fNum );
|
Also you can limit the number of digits to show up after the decimal point like so:
PHP Code:
new Float:float = 0.45;
client_print(0, print_chat, "Float's value is: %.1f", float);
// It will print 0.4
__________________