MISRA C++:2023 D0.3.1
R2026bFloating-point arithmetic should be used appropriately
R2024b 以降
説明
Floating-point arithmetic should be used appropriately. 1
根拠
浮動小数点演算の誤った使用は、桁落ち、オーバーフロー、致命的なキャンセルなどの問題につながる可能性があります。
Polyspace 実装
このルール チェッカーは、以下の欠陥チェッカーと同じ問題をチェックします。
トラブルシューティング
ルール違反が想定されるものの、Polyspace® から報告されない場合は、コーディング規約違反が想定どおりに表示されない理由の診断を参照してください。
チェック情報
| グループ: 言語に依存しない問題 |
| カテゴリ: 推奨 |
PQL 名: std.misra_cpp_2023.D0_3_1 |
バージョン履歴
R2024b で導入
1 All MISRA coding rules and directives are © Copyright The MISRA Consortium Limited 2021.
The MISRA coding standards referenced in the Polyspace Bug Finder™ documentation are from the following MISRA standards:
MISRA C:2004
MISRA C:2012
MISRA C:2023
MISRA C:2025
MISRA C++:2008
MISRA C++:2023
MISRA and MISRA C are registered trademarks of The MISRA Consortium Limited 2021.