If you look carefully at the definition of fundamental arithmetic operations like addition and multiplication, you soon encounter the mathematical abstraction known as the real numbers. But actual computation with real numbers is not very practical because it involves limits and infinities. So you need to avoid to using the result of multiplying floating points for the equal (==) operation because the result of multiplying floating points make the round off error.
Here is the link for the reference of floating points including IEEE Standard unifies arithmetic model:
As workarounds for this issue, use the integer for the variable 'a=2' instead of using floating points 'a=0.2' or rewrite your code like as below:
if (abs(a*12 - 2.4) < eps*10)