Difference between revisions of "Sqr"

From SCAR Divi Manual
Jump to: navigation, search
(See Also)
 
Line 1: Line 1:
 
==Definition==
 
==Definition==
 
<source lang="scar" lines="false">
 
<source lang="scar" lines="false">
function Sqr(X: Extended): Extended;
+
function Sqr(const X: Extended): Extended;
 
</source>
 
</source>
  

Latest revision as of 19:55, 30 August 2011

Definition

function Sqr(const X: Extended): Extended;

Availability

SCAR Divi 3.00 > Current

Description

Returns the square number value of X.

Example

begin
  WriteLn(Sqr(2));
  WriteLn(Sqr(4));
end.

Output:

4
16

See Also