ImaginaryPart(
x
)
Returns the imaginary component of a real or complex number.
Example
=
Block
{
ShowImaginaryPart
(3
+
5
Math
.
I
);
ShowImaginaryPart
(
Math
.
I
);
ShowImaginaryPart
(2);
};
The imaginary part of of 3
+
5
i
is 5.
The imaginary part of of
i
is 1.
The imaginary part of of 2 is 0.