System.Sqr

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function Sqr(X: Extended): Extended; overload;
function Sqr(X: Int64): Int64; overload;
function Sqr(X: 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


Code Examples