From Clomosy Docs

Revision as of 14:59, 24 December 2024 by ClomosyAdmin (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

The sqr function returns the square of a number. The number may be an integer or floating point type.

Example
In practice, a float variable is squared.

 var
  I,sqrI : float;
 
 {
 
  I = 4.5;
  sqrI= Sqr(I);
  ShowMessage('Sqr ('+FloatToStr(I)+'):'+FloatToStr(sqrI));
 
 }

Output:

See Also