Math.round is best option but I had to move the closing bracket
from
Math.round(Math.sqrt(dist*dist/2)/2))
to
Math.round(Math.sqrt(dist*dist/2))/2)
Thanks again :). I'm trying to take next step, but for me it is sci-fi :-D. Your support helped me a lot.
Marius
|