1. Home
  2. Data Science
  3. Python
  4. Which module provides exact decimal arithmetic in Python?

Added 25 Nov 2026

Which module provides exact decimal arithmetic in Python?

  1. decimal Correct answer
  2. math
  3. numbers
  4. fractions only

Correct answer

A. decimal

6 views

MCQSEXAM

Explanation

The decimal module offers Decimal for precise decimal floating-point arithmetic.

Reference

Asked in: Python Interview Data Types

https://docs.python.org/3/library/stdtypes.html

Preparing for an exam?

Doubts & discussion

Not sure why the answer is A? Ask here and get an explanation.

Ask a doubt about this MCQ

Shown after review. No links please.

More Python MCQs

Practise all Python MCQs

Similar MCQs