Menu

#937 warn on comparion of different float types

open
nobody
5
2005-09-02
2005-09-02
Anonymous
No

A line like
if (Float.parseFloat("1.11") > 1.11)
should optionally trigger a warning that floating point
values of differnt typesare compared here which leads
to unprecise results. Other operators affected: +, -,
==, >, <

Discussion


Log in to post a comment.