Value of float is different from what was scanned : <p>So I have this program in which I need to compare values in 0.0X range and if I scan for example 50.21 with this little thing</p>

<pre><code>scanf("%f",bill);
</code></pre>

<p>the value stored in var. bill is actually 50.2099990845... which messes up calculations later in program. Is there any way to turn this number into 50.210000? Thanks for your time. </p>
