vendredi 21 octobre 2016

Strange behavior if condition c++

I have this simple if condition, where count is always > 0

if((source - target) > (count * 10 /100)){
  .. do something
}

but I have this strange behavior the code execute " .. do something" also when the difference is < 0, why??

Aucun commentaire:

Enregistrer un commentaire