-- Collection of code snippets by Arne Vajhøj -- (likely posted to comp.os.vms/INFO-VAX, INFO-TPU, MACRO32, eksperten.dk, newz.dk, LinkedIn or other place sometime between 1990 and now) with Ada.Text_IO,Fraction; use Ada.Text_IO,Fraction; procedure Test_Fraction is F1,F2,F3 : Fraction_Type; begin Fraction_Create(2, 3, F1); Put(F1); New_Line; Fraction_Create(1, 2, F2); F3 := (F1 + F2) * F2; Put(F3); New_Line; end Test_Fraction;