'Cause % Stands for Modulus, what stands for percentage, or does it have to be created myself?
How To Use Percentage In ROBLOX Lua?
2 answers
You kind of have to create it yourself. It's pretty simple, though. Percentages can be expressed in decimals, such as 56% of 24 is (.56 * 24). If you need more of an explanation, comment!
3 comments
Well, this is an example, but if I did: .5 * game.Players.NumPlayers, is it then 50 % of players?
It'll return the number of half the players, yes. @SwaggyDuckie Say if it's 10 players, it'll return 5.
But...but I explained my answer
You would have to create percents yourself.
In case you haven't been to 7th grade yet (I'm not judging you) or may have forgotten, percents work like this:
- 2.5% written as a decimal would be 0.025
- 25% written as a decimal would be 0.25
Basically, to turn a decimal into a percentage, move the decimal point to the right two places. To turn percentages into decimals, move the decimal point two places to the right.
So basically, since you can't use "%" in ROBLOX since it stands for modulus, you can store percents as decimals, and if you need to display them, multiply the decimal version by 100 and add a "%" symbol after it.
2 comments
Heh, beat you by 5 seconds.
o o f
This discussion is preserved as it was. New answers, comments, and votes are closed.

3 comments
https://scriptinghelpers.org/questions/17663/whats-the-difference-between-and#21119
I've answered your comment.
hehe