Versions Compared

Key

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

...

Automated detection of floating-point arithmetic is straight forward. However, determining which code suffers from insufficient precision is not feasible in the general case. Heuristic checks, such as flagging floating-point literals that cannot be represented precisely, could be useful.

Related Guidelines

...

[Bloch 2008]

Item 48. Avoid float and double if exact answers are required

[Bloch 2005]

Puzzle 2. Time for a change

[Goldberg 1991]

 

[IEEE 754]

 

[JLS 2005]

§4Section 4.2.3, Floating-Point Types, Formats, and Values

 

...

[Seacord 2015]

Image result for video iconImage Added NUM04

...

 

...

Image Added      Image Added      Image Added denormalized numbers