Significant figures in the decimal module

前端 未结 6 1711
花落未央
花落未央 2020-12-20 22:40

So I\'ve decided to try to solve my physics homework by writing some python scripts to solve problems for me. One problem that I\'m running into is that significant figures

6条回答
  •  太阳男子
    2020-12-20 23:30

    Decimal defaults to 28 places of precision.
    The only way to limit the number of digits it returns is by altering the precision.

提交回复
热议问题