Skip to content

Casting numpy.complex64 to (Python) complex chops off imaginary part (Trac #1617) #2213

@numpy-gitbot

Description

@numpy-gitbot

Original ticket http://projects.scipy.org/numpy/ticket/1617 on 2010-09-20 by @inducer, assigned to unknown.

Example session:

>>> import numpy
>>> numpy.complex64(1+2j)
(1+2j)
>>> complex(numpy.complex64(1+2j))
(1+0j)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions