THis must be easy since other people do it, please answer this thx guys :)
✓ ANSWER ACCEPTED
How to make a HealthBar(number) that rounds to a whole number?
2 answers
✓ Accepted answer
The following can make a number value that includes a decimal into an integer
math.floor(number) -- Rounds a number down
OR
math.ceil(number) -- Rounds a number up
Whole numbers are technically only positive, so you can also use
math.abs(number) -- Takes the absolute value
2 comments
0
Well thank you, I had no idea about math.ceil!
0
thx
math.floor(health)
4 comments
0
Alright! ill give it to you, that is only true ;)
0
explain anything? you literally asked how to round to a whole number... math.floor() rounds to a whole number o.O
0
@Commander, Don't say "boo" to people trying to help you noob. IDKBlox gave enough information.
0
I gotchu <3. Simple explanations for a simple inquirey.
This discussion is preserved as it was. New answers, comments, and votes are closed.

1 comment
https://devforum.roblox.com/t/rounding-number-to-nearest-whole/102515