SyntaxFix
Write A Post
Hire A Developer
Questions
You want
round(new MathContext(0)); // or perhaps another math context with rounding mode HALF_UP