Lets say I use this code: p.leaderstats.Money.Value = 200.1
it should set the players money to 200.1, correct? Now the leaderboard will indeed say 200.1, however if the money has something subtracted from it, or if I go into the player, and check the value myself, it will equal 200.09999999999999. Does anyone know why? The leaderboard code does not do anything to the value of it.
Floating-point errors. In exchange for a larger range of numbers, computers sacrifice the ability to represent a large amount of numbers exactly (especially decimals). This can have issues when checking for equality, but this can be resolved by factoring in a very small number, often called Epsilon.
ROBLOX uses doubles, so can represent integer numbers exactly up to something like +/- 1000000000000000 (according to a simple test that I ran)
https://en.wikipedia.org/wiki/Floating_point https://en.wikipedia.org/wiki/Machine_epsilon