title: How to transform integer to float and vice-versa in Ada?
body: <p>Is there some kind of implemented function that would allow to transform an integer to float and vice versa?</p>
  
  <p>I managed to write a short function that transforms an integer to float:</p>
  
  <pre><code>function Transform(First: Integer) return Float is
      A: Integer := First;
      B: Float := 0.0;
  begin
      For_Loop:
      for I in Integer range 1 .. A loop
          B := B + 1.0;
      end loop For_Loop;
      return B;
  end Transform;
  </code></pre>
  
  <p>But I don't know how to go from <code>Float</code> to <code>Integer</code>. </p>