Why does Python return this weird number?

前端 未结 0 392
时光取名叫无心
时光取名叫无心 2021-01-11 12:26

When I try to run (-1)**0.5, Python returns (6.123233995736766e-17+1j). What is this number? And how can I get just 1j as the result?<

相关标签:
回答
  • 消灭零回复
提交回复
热议问题