def _div_nearest(a, b):
 (q, r) = divmod(a, b)
 return (q + (((2 * r) + (q & 1)) > b))

def _div_nearest ( a , b ) : ( q , r ) = divmod ( a , b ) return ( q + ( ( ( 2 * r ) + ( q & 1 ) ) > b ) )
closest integer to a/b .