Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: integrated JPCERT comments

Working with string representations of floating-point values can produce incorrect conclusions about the precision of the values. For example, consider the conversion of a value from type float to type double, a widening primitive conversion. Refer to the rule "NUM14-J. Beware of precision loss when converting primitive integers to floating-point" for more details about such conversions.

String representations of floating-point numbers shall must not be compared or inspected. When the value of a float variable must be represented exactly using the double type, an explicit assignment is more appropriate than first converting the floating-point value to a String and then to a double.

...

<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="e3b02ded96841c4f-22f9cae2-474647df-ae50a241-96e38716dd582e21fb34e2cf"><ac:plain-text-body><![CDATA[

[[API 2006

AA. Bibliography#API 06]]

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

<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="ed3e90f771a7a174-e0d2c79d-4e544f7e-ad4995cd-baf3d60d217f3cadba590a33"><ac:plain-text-body><![CDATA[

[[JLS 2005

AA. Bibliography#JLS 05]]

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

...