To get the sqaure root of a negative number we could use cmath.sqrt. But either the real part or the imag part of the result is still a float:
type (cmath.sqrt (Decimal (-8)).imag)
result: float
How do I get a Decimal square root of a negative Decimal number?
For a positive number we could use: Decimal (8).sqrt ()
The result is still a Decimal. But it doesn't work on negative numbers: Decimal (-8).sqrt ()
{InvalidOperation}[]