klyn.math.Complex.magnitude
method
public magnitude() as Double:
DescriptionReturns the magnitude (or absolute value) of the complex number.
c = Complex<>(3, 4)
print(c.magnitude()) # Output: 5
ReturnsThe magnitude of the complex number. ``` c = Complex<>(3, 4) print(c.magnitude()) # Output: 5 ```