removing decimal
#1

for example i have
Код:
new Float:RobSkill = 1.4;
format(String, sizeof(String), "%0.1f", RobSkill);
That will print 1.4, how can i that it prints 1?
Reply
#2

"%.0f" would print a rounded down version of a float
Reply
#3

Wiki:floatround
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)