エラーコードポータル
PythonPythonエラーコード

OverflowError

OverflowError

コード OverflowError · Pythonが報告した問題です。

算術演算の結果が大きすぎて表現できない場合に発生します。これは整数では発生しません (諦めるのではなく MemoryError が発生するでしょう)。ただし、歴史的な理由により、必要な範囲外の整数に対して OverflowError が発生することがあります。 C では浮動小数点例外処理が標準化されていないため、ほとんどの浮動小数点演算はチェックされません。

Google Translate · 自動翻訳です。専門用語や適用条件は英語の原文で確認してください。

Raised when the result of an arithmetic operation is too large to be represented. This cannot occur for integers (which would rather raise MemoryError than give up). However, for historical reasons, OverflowError is sometimes raised for integers that are outside a required range. Because of the lack of standardization of floating-point exception handling in C, most floating-point operations are not checked.

トラブルシューティング・診断リンク

まず、文書の製品・バージョン・発生環境が現在の状況と一致しているか確認してください。