Returns 1 if input parameter is complex.
ISCOMPLX(val)
|
val |
- |
A series, scalar or string value to test. |
The scalar 1 if the input is complex or a complex series, else 0.
iscomplx(3i)
returns 1.
iscomplx("string")
returns 0.
iscomplx(fft({1, 2, 3, 4}))
returns 1
If the input series is empty, iscomplx returns 0.