Convert Integers to Floating Point for Floating-Point Operations 

es.uniovi.reflection.analyses.cmu.num50


The rule detects division expressions where the two operands are/promote to integers or longs, and the result is assigned to a float or double variable. It is recommended to include a double literal (1.0) as an operand (in case the programmer wants to enforce a double division) or to change the type of the variable to integer (if an integer result is expected).

Computational Reflection Research Group
12-03-2025 17:14
Program Understandability
Any Assignment