Print number in engineering format

前端 未结 6 1724
陌清茗
陌清茗 2020-12-06 01:22

I am trying to print a number into engineering format with python, but I cannot seem to get it to work. The syntax SEEMS simple enough, but it just doesn\'t work.



        
6条回答
  •  余生分开走
    2020-12-06 02:12

    Previously I tried to answer, but found out it's just still the scientific notation. The engineering notation will be supported in the future versions of Python format specifier (3.2?), but not in Python 2.7.

    Look at this issue http://bugs.python.org/issue8060

提交回复
热议问题