Need Help Rounding

I made a custom GUI that goes above the players head in my game, however when the player is on health lower than one, but greater than 0, (example: Health being on 0.5) it shows the health being on 0, since I used math.floor(), but is there any way instead of rounding down I can round it up?

In the future, this is the sort of thing you can easily look up. Googling “Roblox lua rounding” or “lua rounding” will yield dozens. But here is your solution.
math.floor(number+.5)

math.floor(number) is used to round a number down, math.ceil(number) is used to round a number up.

1 Like

Thank you, however that will not work as the number can be 0.5, or 0.597638763487563