Python:decimal Decimal 반올림 오차가 없는 고정소수점을 사용하려면 decimal 모듈의 Decimal을 사용하면 됩니다. Decimal은 숫자를 10진수로 처리하여 정확한 소수점 자릿수를 표현합니다. >>> from decimal import Decimal >>> Decimal('0.1') + Decimal('0.2') Decimal('0.3') See also python Python:math Python:fractions 이 문서를 가리키는 문서 Python Python:fractions Python:math Python:StandardLibrary lastmod 2023-01-05created 2023-01-05author Zer0 sitemap