Jump to content
Sign in to follow this  
HappyG

Round()

Recommended Posts

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

</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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×