HappyG 0 Posted April 18, 2003 Hm... Ive checked the official scripting commands, but I cannot find a function for rounding numbers. Is there any way to round numbers easy way? Share this post Link to post Share on other sites
Bart.Jan 0 Posted April 18, 2003 </span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE"> _number=random 10 _number=_number-(_number mod 1) <span id='postcolor'> or better </span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE"> _number=random 10 _number=_number-(_number%1) <span id='postcolor'> Share this post Link to post Share on other sites
bn880 5 Posted April 18, 2003 Just note that this always rounds down. Share this post Link to post Share on other sites