0
Follow
0
View

Questions about Python output real numbers

chen19860602 注册会员
2023-02-27 23:29

If helpful, please click on my comment above the [adopt the answer] button support, thank you! We can communicate with each other about any problems in the future.

xianyuxuyang 注册会员
2023-02-27 23:29
huangmincong2012 注册会员
2023-02-27 23:29

Control output format with %e, output in scientific counting form

img

cn =1.23e-4+5.6e-89j
print("%e"%cn.real)
print(cn.imag)


About the Author

Question Info

Publish Time
2023-02-27 23:29
Update Time
2023-02-27 23:29