What is the python for Java's BigDecimal?

前端 未结 1 1320
时光说笑
时光说笑 2020-12-24 07:32

In Java, when we program money it is recommended to use the class BigDecimal for money. Is there something similar in python? I would like something object-oriented that can

相关标签:
1条回答
  • 2020-12-24 08:05

    The java.math.BigDecimal in Java's equivalent is decimal.Decimal in Python. You can even go through the documentation for more. mpmath is a pure-Python library for multi-precision floating-point arithmetic.

    0 讨论(0)
提交回复
热议问题