root
Calculate the n-th root of a number
will return the n-th root (index/degree) of a number (radicand). The return_type specifies in which data type the result will be returned in, like shown in below example:
The n-th root of a number is undefined for n (index/degree) being an even number and a (radicand) being an non-positive number. As a result, the compiler will throw the following exception:
Last updated