Sqrt

From SCAR Divi Manual
Revision as of 10:55, 29 June 2011 by Freddy (talk | contribs) (Created page with "==Definition== <source lang="scar" lines="false"> function Sqrt(e: Extended): Extended; </source> ==Availability== SCAR Divi 3.00 > Current ==Description== Calculates the squar...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Definition

function Sqrt(e: Extended): Extended;

Availability

SCAR Divi 3.00 > Current

Description

Calculates the square root of e. If e < 0, then an "Invalid floating point operation" error is thrown.

Example

begin
  WriteLn(Sqrt(4));
  WriteLn(Sqrt(16));
end.

Output:

2
4

See Also