mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-27 00:03:43 +02:00
13 lines
166 B
ObjectPascal
13 lines
166 B
ObjectPascal
Program Example1;
|
|
|
|
{ Program to demonstrate the Abs function. }
|
|
|
|
Var
|
|
r : real;
|
|
i : integer;
|
|
|
|
begin
|
|
r:=abs(-1.0); { r:=1.0 }
|
|
i:=abs(-21); { i:=21 }
|
|
end.
|