Is there some kind of implemented function that would allow to transform an integer to float and vice versa?
I managed to write a short function that transforms an integer to float:
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;
But I don't know how to go from Float
to Integer
.