System.Sqr
Delphi
function Sqr(X: <Real Int64 or Integer> ): Extended; overload;
function Sqr(X: <Real Int64 or Integer> ): Int64; overload;
function Sqr(X: <Real Int64 or Integer> ): Integer; overload;
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | System.pas | System | System |
Description
Returns the square of a number.
In Delphi code, the Sqr function returns the square of the argument.
X is a floating-point expression. The result, of the same type as X, is the square of X (or X*X).
See Also