SyntaxFix
Write A Post
Hire A Developer
Questions
Documentation of Math.round says:
Math.round
Returns the result of rounding the argument to an integer. The result is equivalent to (int) Math.floor(f+0.5).
(int) Math.floor(f+0.5)
No need to cast to int. Maybe it was changed from the past.
int