Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

As in the previous compliant example, the value of c cannot be represented exactly as a double. Consequently, the value of f is not precise before or after the multiplication. The explanation and consequences are identical to those stated above.

Exceptions

NUM16NUM13-EX1: 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, using 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.

...

Rule

Severity

Likelihood

Remediation Cost

Priority

Level

NUM16 NUM13-J

low

probable

low

P6

L2

Automated Detection

...

<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="f37762c9361d8caa-560d395b-47b14866-b4c18463-37e0e3b6b851300799fc8303"><ac:plain-text-body><![CDATA[

[[JLS 2005

AA. Bibliography#JLS 05]]

[[§5.1.2, Widening Primitive Conversion"

http://java.sun.com/docs/books/jls/third_edition/html/conversions.html#5.1.2]

]]></ac:plain-text-body></ac:structured-macro>

...