cbrt

Computes the cubic root of x

D
cbrt
(
D
)
(
auto const ref D x
)

Throws

InvalidOperationExceptionx is signaling NaN
UnderflowExceptioncubic root of x is too small to be represented
InexactExceptionthe result is inexact

Special values

xcbrt(x)
NaNNaN
±0.0±0.0
±∞±∞

Examples

decimal32 x = 27;
assert (cbrt(x) == 3);

Meta