title: Square root function (math.h) - C
body: <p>I think that my problem is very stupid... My function doesn't return a decimal value, but an int value... How can I solve this? Thanks!</p>
  
  <pre><code>        #include &lt;stdio.h&gt;
          #include &lt;stdlib.h&gt;
          #include &lt;math.h&gt;
  
          int main()
          {
            //Dichiarazione variabili
            int nCasuale, i, MAX = 0, min = 100;
            float radice;
  
            //Generazione numeri casuali
            srand(time(NULL));
  
            for (i = 0; i &lt; 10; ++i) //Ciclo numeri casuali
              {
                nCasuale = 1 + rand() % 100; //Casuale tra 1 e 100
                printf("Numero casuale[%d]: %d\n", i, nCasuale); //Lo stampo
  
                radice = sqrt(nCasuale); //Radice del numero
                printf("Radice quadrata(%d)= %2.f\n\n", nCasuale, radice); //Stampo
  </code></pre>
  
  <p>And so on...</p>
  
  <p>I don't understand why... Thanks for help =)</p>