Python Reference (The Right Way)
latest
Introduction
Definitions
Coding Guidelines
Fundamental Data Types
Built-In Functions
Comprehensions and Generator Expression
Container Data Access
Operators
Statements
Other Objects
Double Underscore Methods and Variables
Exceptions
Constants
Boilerplate
Glimpse of the PSL
Resources
Licence
Python Reference (The Right Way)
Docs
»
imag
Edit on GitHub
imag
¶
Description
¶
Retrieves the imaginary component of this number.
Syntax
¶
complex
.
imag
Return Value
¶
float
Example
¶
>>>
(
1
+
3
j
)
.
imag
3.0
See Also
¶
real