mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-05-02 00:53:40 +02:00
11 lines
263 B
ObjectPascal
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.
|