fpc/docs/refex/ex70.pp
1998-03-25 11:26:49 +00:00

11 lines
259 B
ObjectPascal

Program Example54;
{ Program to demonstrate the Trunc function. }
begin
Writeln (Trunc(123.456)); { Prints 123 }
Writeln (Trunc(-123.456)); { Prints -123 }
Writeln (Trunc(12.3456)); { Prints 12 }
Writeln (Trunc(-12.3456)); { Prints -12 }
end.