13.03.2009, 21:49
Quote:
|
Originally Posted by lesley
How to round a number that the result's last cipher is 5 or 0,
could it be something like that? : Код:
new rounded, num; num = 47; rounded = (num / 5) * 5; |
pawn Код:
new num1, num2;
num1 = 4;
num2 = 7;
if(num2 < 5) { num2 = 0; } else if(num2 >= 5) { num2 = 5; }

