This is known as a floating-point error, it happens in all programming languages that use floats to store number values.
Heres a link that explains it pretty well, its written for Python but the same applies to most programming languages (including Lua, just pretend its saying “Lua” instead of “Python”)
Edit: You also shouldn’t worry about this, it’s likely never going to be an issue as the error is extremely small.