modified nearest number