Python将科学计数法数值转换为指定精度浮点数

Python将科学计数法数值转换为指定精度浮点数

In [20]:money = 1190000.0

In [21]: traded_maket_value = 13824000000

In [22]: money / traded_maket_value
Out[22]: 8.608217592592592e-05

In [23]: '{:.10f}'.format( money / traded_maket_value)
Out[23]: '0.0000860822'

原文地址:https://www.cnblogs.com/bigtreei/p/10737666.html