up
previous
next
iroot
integer part of r-th root of an integer
Syntax
iroot(N:INT, R: INT):INT
Description
This function computes the R-th root of an integer. If the argument is not a perfect R-th power it returns the integer part of the root.
Example
/**/ iroot(25, 2); 5 /**/ iroot(99, 3); 4 /**/ iroot(-1, 3); -1
See Also
ILogBase