[Python-Dev] return type of complex (original) (raw)

Devin Jeanpierre jeanpierreda at gmail.com
Mon Oct 22 13:37:57 CEST 2012


On Mon, Oct 22, 2012 at 7:34 AM, Larry Hastings <larry at hastings.org> wrote:

-1 ** 0.5 -1.0

Be careful about order of operations!

>>> (-1)**.5
(6.123233995736766e-17+1j)

-- Devin



More information about the Python-Dev mailing list