...
It is acceptable to perform operations using a mix of integer and floating-point values when deliberately exploiting the properties of integer arithmetic before conversion to floating point. For example, use of integer arithmetic eliminates the need to use the floor() method. Any such code must be clearly documented to help future maintainers understand that this behavior is intentional.
Automated Detection
| Tool | Version | Checker | Description |
|---|
SonarQube Java Plugin Java Plugin Java Plugin |
Bibliography
...
...
Image Modified
Image Modified
Image Modified