question: public static int round ( double value ) { int roundedValue = value > 0 ? ( int ) ( value + 0.5 ) : - ( int ) ( Math . abs ( value ) + 0.5 ) ; return roundedValue ; }
target:  Rounds a double to the next nearest integer value. The JDK version of it doesn't work properly.