Okay, the subject says it.
I set a float in a class' constructor to 0.51f and the first time the variable is used it reads 0.5099999f.
Why?
Printable View
Okay, the subject says it.
I set a float in a class' constructor to 0.51f and the first time the variable is used it reads 0.5099999f.
Why?
Because floating point numbers don't have 100% accuracy.