Python logo

Table of Contents

  • decimal — Decimal fixed-point and floating-point arithmetic
    • Quick-start tutorial
    • Decimal objects
      • Logical operands
    • Context objects
    • Constants
    • Rounding modes
    • Signals
    • Floating-point notes
      • Mitigating round-off error with increased precision
      • Special values
    • Working with threads
    • Recipes
    • Decimal FAQ

Previous topic

cmath — Mathematical functions for complex numbers

Next topic

fractions — Rational numbers