[issue43830] (-1) ** 0.5 returns (6.123233995736766e-17+1j) instead of 1j

Steven D'Aprano report at bugs.python.org
Tue Apr 13 05:55:28 EDT 2021


Steven D'Aprano <steve+python at pearwood.info> added the comment:

Before replying please read:

https://docs.python.org/3/faq/design.html#why-are-floating-point-calculations-so-inaccurate

https://duckduckgo.com/?q=python+why+are+floating+point+so+inaccurate

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue43830>
_______________________________________


More information about the Python-bugs-list mailing list