make 52.73477 to 52.73
#1

im stucking here, rly need help!
Reply
#2

What're you asking? If you're referring to floats, use: " .2f ".
Reply
#3

It is a float you can use format this way:
PHP код:
new string[25];
new 
Float:num 52.74377;
format(stringsizeof(string), "Number is: %.2f"num);
SendClientMessage(playerid, -1string); 
Код:
 Output:
Number is: 52.74
Reply
#4

Maybe this would help:
PHP код:
new Float:myfloat 52.734477;
new 
str[10];
fomat(mystr,10,"%.2f",myfloat);
new 
Float:newfloat floatstr(mystr); 
E: Didn't seen other answers
Reply
#5

thx all, solved
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)