with Ada.Integer_Text_Io, Ada.Text_Io;use Ada.Integer_Text_Io, Ada.Text_Io; procedure Test isv : Long_Float := 26.0;v1 : Float := 26.0;begin while (v<=27.0) loop Put_Line("V = " & Long_Float'image(v)); v:=v+0.2; end loop; while (v1<=27.0) loop Put_Line("V1= " & Float'image(v1)); v1:=v1+0.2; end loop; end;
Standard input is empty
V = 2.60000000000000E+01 V = 2.62000000000000E+01 V = 2.64000000000000E+01 V = 2.66000000000000E+01 V = 2.68000000000000E+01 V = 2.70000000000000E+01 V1= 2.60000E+01 V1= 2.62000E+01 V1= 2.64000E+01 V1= 2.66000E+01 V1= 2.68000E+01
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!