C# proper way to loop through a float
<p>I am looping through a function that looks like this:</p>

<pre><code>Y=exp(-0.04*(x-13.25)^(2))*300
</code></pre>

<p>Let's say I want to get <code>Y</code>for every value of <code>x</code> between 3.3454 and 20.3458 for every <code>0.1 interval</code></p>

<p>I would do this:</p>

<pre><code>for (float i=3.3454;i&lt;20.3458;i=+.1)
</code></pre>

<p>Is this the correct way to do this?</p>
