title: why does this code print "0"rather than "1"?
body: <p>Why does the following code print 0?</p>
  <pre class="lang-cpp prettyprint-override"><code>#include&lt;cstdio&gt;
  
  int main()
  {
      float a = 0.1;
      printf(&quot;%d&quot;, int(2 - a * a * 100));
      return 0;
  }
  </code></pre>