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'

 

posted @ 2019-04-19 18:09  ZhuGaochao  阅读(2075)  评论(0编辑  收藏  举报