Skip to content

float_root

Floating Point Numbers (XFL)
  • Compute a the nth root of an XFL number
  • Return the new XFL
int64_t float_root (
int64_t float1,
uint32_t n
);
int64_t three =
float_root(nine, 2);
NameTypeDescription
float1int64_tAn XFL floating point enclosing number representing the floating point number to take the square root of
nuint32_tThe root to compute, for example 2 is a square root.
TypeDescription
int64_t

The computed nth root

If negative, an error:
INVALID_FLOAT
- the supplied parameter was not a valid XFL enclosing number

COMPLEX_NOT_SUPPORTED
- the supplied parameter was a negative number which would result in a complex root.