Issue with decimals

  1. What do you want to achieve? Keep it simple and clear!
    Stop numbers from gaining/losing decimals

  2. What is the issue? Include screenshots / videos if possible!
    Lets say I remove 0.01 from 1, it goes to 0.99. However, sometimes it does 0.65 - 0.01 = 0.63999999.

  3. What solutions have you tried so far? Did you look for solutions on the Developer Hub?
    For now I’ve rounded the numbers but id rather not have to do it if possible.

Note: Mainly trying to figure out if its a roblox thing or my own script

This is a “roblox” thing or more specifically a computer thing with rounding issues, you should be able to ignore it or just round the number if it matters that much

floating point error. if i were you id change the scale from 0-100 instead. and then with the number you get just do x / 100

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.