ada Attribute Image Print out Float using attribute Image


Example

with Ada.Text_IO;

procedure Main is
   X : Float := 2.71;
begin
   Ada.Text_IO.Put_Line (Float'Image (X));
end Main;

Result

2.71000E+00