question: public static int realignToGridRoundToNearest ( boolean logRealign , double val ) { boolean roundUp ; if ( Math . abs ( val % SharedConstants . DEFAULT_GRID_SIZE ) < SharedConstants . DEFAULT_GRID_SIZE / 2 ) { roundUp = val < 0 ; } else { roundUp = val >= 0 ; } return realignTo ( logRealign , val , roundUp , SharedConstants . DEFAULT_GRID_SIZE ) ; }
target:  rounds eg: 5 to 10, 4 to 0, -5 to -10, -4 to 0