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.

MongoDB Logo MongoDB