Menu

#555 calling Math.round() with integer expression

open
nobody
rules (229)
5
2012-10-07
2010-12-03
No

Suggestion for new rule (just found a bug like this in my code).

If the code calls Math.round() or Math.ceil() or Math.floor() with an expression that has type short or int or long, then the code is probably wrong.

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.