Cos(90) returning a value very close to 0, but I need 0?
<p>The values for temp_x_btm_left = 0 &amp; temp_y_btm_left=1;</p>

<pre><code>angle = 90;

//Moving the bottom left coordinates
_btm_left.real() = (temp_x_btm_left * cos(angle*PI/180)) 
                   - (temp_y_btm_left * sin(angle*PI/180));
_btm_left.imag() = (temp_x_btm_left * sin(angle*PI/180)) 
                   + (temp_y_btm_left * cos(angle*PI/180));
</code></pre>

<p>The code is supposed to rotate the object 90 degrees counter-clockwise, which it does but the <code>_btm_left.imag()</code> returns a value really close to 0 = 1.437949e-009, and I really need it being 0. </p>

<p>I've tried <code>setprecision()</code> and <code>setw()</code> but it doesn't seem to have any effect. Are there any methods for anything like this or do I need to create my own to solve this?!</p>
