Sign in Join
FPDoc Onlineexperiment

Sqr function

In unit System

Calculate the square of a value.

Declaration

pascal
function Sqr(l: LongInt): LongInt

Description

Sqr returns the square of its argument X.

Errors

None.

See also

Example: ex65

pascal
Program Example65;

{ Program to demonstrate the Sqr function. }
Var i : Integer;

begin
  For i:=1 to 10 do
    writeln (Sqr(i):3);
end.

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.