up previous next
isqrt

(truncated) square root of an integer

Syntax
isqrt(N: INT): INT

Description
This function computes the square root of an integer. If the argument is not a perfect square it returns the integer part of the square root.

Example
/**/  isqrt(16);
4

/**/  isqrt(99);
9

-- /**/  isqrt(-1);  --> !!! ERROR !!!
ERROR: Value must be non-negative
 isqrt(-1);
 ^^^^^^^^^