13.03.2009, 21:07
How to round a number that the result's last cipher is 5 or 0,
could it be something like that? :
in my example, 'rounded' should be 45..
could it be something like that? :
Код:
new rounded, num; num = 47; rounded = (num / 5) * 5;