floatround question
#1

Hi guys..
how can I round a float to the first number after the comma?

like round: 16.5472
to: 16.6
Reply
#2

pawn Код:
new Float:value = 16.615413;

value = floatround( value * 10.0 ) / 10.0;
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)