Roblox Percentage Chances

Hello,

I am trying to calculate the rates of items in my games, so far i have a maximum of 3
image --Here is where i printed out all the rates converted to percentages, however, I’m wondering if i have to display all the decimals such as 1.6843748324 for example, or can I round it to 1.7?
Chances have to be displayed according to Roblox rules

print(1.68 + 28.08 + 70.22) --99.98
print(1.7 + 28.1 + 70.2) --100 (Rounded applied, a lot more convenient) is this allowed ?
Or do i have to even display all the others numbers, because it’s pretty low to get an exact percentage without the decimals being displayed

im pretty sure you’re fine with hundreths.

1.69%

Oh alright, so in this case
1.69 + 28.1 + 70.2 --99.99

would this be valid ? or does it have to be exact 100

If you do the math correctly, it will be naturally 100.
Right now you just aren’t rounding correctly.

If we are rounding to two decimal places, you should be getting:

1.69 + 28.09 + 70.22 = 100

There shouldn’t be any surprises or special exceptions needed here.

Alright thank you, i just wanted to also know that is it acceptable for rounded percentage chances (such as this case) to display to users ? the chances they have at obtaining that certain item

Two decimal places should be fine