fpc/docs/refex/ex54.pp
2000-01-19 22:21:37 +00:00

11 lines
263 B
ObjectPascal

Program Example54;
{ Program to demonstrate the Round function. }
begin
Writeln (Round(1234.56)); { Prints 1235 }
Writeln (Round(-1234.56)); { Prints -1235 }
Writeln (Round(12.3456)); { Prints 12 }
Writeln (Round(-12.3456)); { Prints -12 }
end.