--  Decimal fixed point (RM 3.5.9): exact decimals, money say; the arithmetic truncates toward
--  zero, as Ada's (59.97 / 2 is 29.98).
with Ada.Text_IO;
procedure Main is
   type Money is delta 0.01 digits 12;
   Price : constant Money := 19.99;
   Total : Money := 0.0;
begin
   for I in 1 .. 3 loop
      pragma Loop_Invariant (Total = Money (I - 1) * Price);
      Total := Total + Price;
   end loop;
   pragma Assert (Total = 59.97);
   Ada.Text_IO.Put_Line (Money'Image (Total));
   Ada.Text_IO.Put_Line (Money'Image (Total / 2));
   Ada.Text_IO.Put_Line (Money'Image (Money'Last));
end Main;
