Skip to main content

imag

Overloads​

NameDescription
imag(integer value) -> realGet the imaginary part of a complex number.
imag(real value) -> realGet the imaginary part of a complex number.
imag(bool value) -> realGet the imaginary part of a complex number.
imag(complex value) -> realGet the imaginary part of a complex number.

imag(integer value) -> real​

Get the imaginary part of a complex number.

Parameters​

  • value: The number.

Returns​

The imaginary part of the number.

imag(real value) -> real​

Get the imaginary part of a complex number.

Parameters​

  • value: The number.

Returns​

The imaginary part of the number.

imag(bool value) -> real​

Get the imaginary part of a complex number.

Parameters​

  • value: The number.

Returns​

The imaginary part of the number.

imag(complex value) -> real​

Get the imaginary part of a complex number.

Parameters​

  • value: The number.

Returns​

The imaginary part of the number.