imag

Description

Retrieves the imaginary component of this number.

Syntax

complex. imag

Return Value

float

Example

>>> (1+3j).imag
3.0

See Also

real