Roc-Atlantis

 from decimal import *:

 getcontext()

getcontext().prec = a ..(设置精度)

m = Decimal(1)/Decimal(3)

得出来的m精度是设置好的

 

分类:

技术点:

相关文章:

  • 2022-01-01
  • 2021-10-09
  • 2022-12-23
  • 2021-12-09
  • 2022-12-23
  • 2021-11-30
  • 2022-12-23
猜你喜欢
  • 2021-11-30
  • 2022-12-23
  • 2021-11-30
  • 2021-11-30
  • 2022-12-23
  • 2021-05-31
  • 2021-06-01
相关资源
相似解决方案