Problem

Return (int) Math.round(x) for a double x.

Examples

  • mathRound(2.4) -> 2
  • mathRound(2.5) -> 3
Compile and test (Ctrl+Enter)