Show: Delphi C++
Display Preferences

System.Sqr

From RAD Studio API Documentation
Jump to: navigation, search

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


Code Examples

Personal tools
In Other Languages
Previous Versions
Assistance