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'
SRE实战 互联网时代守护先锋,助力企业售后服务体系运筹帷幄!一键直达领取阿里云限量特价优惠。

更多精彩