Integer Division Precision Loss Low

Script calculates a percentage using integer division before multiplication, which may cause loss of precision. To fix, rearrange the expression to perform multiplication before division.

Detector ID
shell/integer-division-precision-loss@v1.0
Category
Common Weakness Enumeration (CWE) external icon
-
Tags
-