Rounds a number to the nearest integer. @param x the input number @return the nearest integer value as a double
(double x)
| 230 | * @return the nearest integer value as a double |
| 231 | */ |
| 232 | private static double round(double x) { |
| 233 | return Math.floor(x + 0.5); |
| 234 | } |
| 235 | } |
no test coverage detected