System.Sqr
From RAD Studio VCL Reference
Contents |
Delphi Information
From System.pas
function Sqr(X: Real): Extended;
Unit: System
Type: function
Visibility: public
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
Code Samples