real

Description

Retrieves the real component of this number.

Syntax

complex. real

Return Value

float

Example

>>> (1+3j).real
1.0

See Also

imag