Hey all I have just come to notice that floats are not accurate even when they are explicitly set and unchanged. For example i have some basic code running and it is:
if (bike.getY() < previousBikeY){
bike.accelY = 50f;
System.out.println("bike accel Y :" + bike.accelY);
}
The result in the log is:
I/System.out: accelY: 49.770126
If I wanted 49.77 id have set 49.77, this also makes me wonder about all the other uses of float i have (such as position, speed, gravity, time, etc).
A) Does this happen in other languages such as C++ or C#? B) is this normal and something i should ignore OR do I need to take action?