Difference between revisions of "Sqrt"
From SCAR Divi Manual
(→Description) |
(→Description) |
||
Line 8: | Line 8: | ||
==Description== | ==Description== | ||
− | Calculates the square root of '''e'''. If e < 0, then an "Invalid floating point operation" exception is thrown and the script is stopped | + | Calculates the square root of '''e'''. If '''e''' < 0, then an "Invalid floating point operation" exception is thrown and the script is stopped |
==Example== | ==Example== |
Revision as of 10:56, 29 June 2011
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" exception is thrown and the script is stopped
Example
begin WriteLn(Sqrt(4)); WriteLn(Sqrt(16)); end.
Output:
2 4