So I have created a simple script where, I have a float variable "rps", which starts off at 0.001.
Every second I add 0.0001 to this variable.
When I output the variable to the screen in Unity 3D, why does it come out as a really long decimal, like 0.001099999999?
So instead of adding 0.0001 it adds 0.00009999999999, when that is 100% not what I am adding.
Is there anyway to fix this, or is it just a bug within Unity or C#, if I am unable to fix it, is there an easy way to round it, as I have searched the internet, and it all looks like a lot of code, that doesn't seem necessary. Thanks for any help