...
Automated detection appears to be straightforward.
Bibliography
[JLS 2005] |
...
NUM12-J. Do not use floating-point variables as loop counters 03. Numeric Types and Operations (NUM) NUM14-J. Do not rely on the default string representation of floating-point values