I have a GUI that shows the value of os.clock + 87, but the numbers are really specific, but I really only need a timer that goes to tenths/hundredths or larger. Is there a way to round the numbers?

# How to round numbers (SOLVED)

**GamingBud**#2

Use math.ceil or math.floor . Although, those only round up or down. To get it to round the way we normally do, I found this. I didn’t test it, but it was selected as the best answer:

```
function round(n)
return n % 1 >= 0.5 and math.ceil(n) or math.floor(n)
end
```