TUrbo C++, problems in getting decimals
<p>I couldnt find a match to what I wanna ask. Why cant I display tan (39/180*3.142)?
Instead it gives me 0.0000, I need the decimals.</p>

<pre><code>void __fastcall TForm1::Button1Click(TObject *Sender)
{
    float h, a, d;
    char* number = new char[255];
    a = tan (39/180*3.142);
    sprintf(number, "%.6f", a);
    Height-&gt;Text = number;
}
</code></pre>

<p>Please advice. Thnx.</p>
