(* Collection of code snippets by Arne Vajhøj *)
(* (from articles on eksperten.dk / vajhoej.dk written sometime between 2004 and now) *)
program z(input,output);

procedure test(x : double);

begin
   writeln(x, trunc(x), round(x));
end;

begin
   test(1.6);
   test(1.4);
   test(-1.4);
   test(-1.6);
end.
