|
| 08 Jan 2013 10:32 PM |
this forum is more active than scripting helpers and has to do with roblox.
Through script, how can I round numbers?
Like, if I do...
script.Parent.Value = script.Parent.Value * 1.2
and started with 1, it would go into decimals. How can I round out of decimals? |
|
|
| Report Abuse |
|
|
pwnedu46
|
  |
| Joined: 23 May 2009 |
| Total Posts: 7534 |
|
| |
|
|
| 08 Jan 2013 10:33 PM |
| Is that it's own function or just to add? |
|
|
| Report Abuse |
|
|
pwnedu46
|
  |
| Joined: 23 May 2009 |
| Total Posts: 7534 |
|
|
| 08 Jan 2013 10:34 PM |
| You could put it in a function to reuse if you really wanted to, but all you have to do is replace "number" with the number you want to round. |
|
|
| Report Abuse |
|
|