All three below produce 0, completely wrong. The issue seems to be with adding two floats and storing result into an integer type.
int a = 2.5 + 2.5; // 0 int b = 5645646.69 + 56465.1337; // 0 int c = 0.99 + 0.99; // 0
All three below produce 0, completely wrong. The issue seems to be with adding two floats and storing result into an integer type.
int a = 2.5 + 2.5; // 0 int b = 5645646.69 + 56465.1337; // 0 int c = 0.99 + 0.99; // 0