I have the following statement:
float diff = tempVal - m_constraint.getMinVal();
tempVal
is declared as a float and the getMinVal()
returns a float value.
I have the following print out:
diff=0.099999905, tempVal=5.1, m_constraint.getMinVal()=5.0
I expect the diff is 0.1 but not the above number. how to do that?