prompt: You will be provided with a partial code base and an issue statement explaining a problem to resolve.
  <issue>
  `around` result is different compared to numpy
  ```
  >>> np.__version__
  '1.16.4'
  >>> np.around([2.5])
  array([2.])
  >>> cupy.__version__
  '7.0.0a1'
  >>> cupy.around([2.5])
  array([3.])
  ```
  NumPy seems to round to even.
  
  </issue>
  <code>
  [start of cupy/math/rounding.py]
  1 from cupy import core
  2 from cupy.core import fusion
  3 from cupy.math import ufunc
  4 
  5 
  6 def around(a, decimals=0, out=None):
  7     """Rounds to the given number of decimals.
  8 
  9     Args:
  10         a (cupy.ndarray): The source array.
  11         decimals (int): umber of decimal places to round to (default: 0).
  12             If decimals is negative, it specifies the number of positions to
  13             the left of the decimal point.
  14         out (cupy.ndarray): Output array.
  15 
  16     Returns:
  17         cupy.ndarray: Rounded array.
  18 
  19     .. seealso:: :func:`numpy.around`
  20 
  21     """
  22     if fusion._is_fusing():
  23         return fusion._call_ufunc(core.core._round_ufunc, a, decimals, out=out)
  24     a = core.array(a, copy=False)
  25     return a.round(decimals, out=out)
  26 
  27 
  28 def round_(a, decimals=0, out=None):
  29     return around(a, decimals, out=out)
  30 
  31 
  32 rint = ufunc.create_math_ufunc(
  33     'rint', 1, 'cupy_rint',
  34     '''Rounds each element of an array to the nearest integer.
  35 
  36     .. seealso:: :data:`numpy.rint`
  37 
  38     ''')
  39 
  40 
  41 floor = ufunc.create_math_ufunc(
  42     'floor', 1, 'cupy_floor',
  43     '''Rounds each element of an array to its floor integer.
  44 
  45     .. seealso:: :data:`numpy.floor`
  46 
  47     ''', support_complex=False)
  48 
  49 
  50 ceil = ufunc.create_math_ufunc(
  51     'ceil', 1, 'cupy_ceil',
  52     '''Rounds each element of an array to its ceiling integer.
  53 
  54     .. seealso:: :data:`numpy.ceil`
  55 
  56     ''', support_complex=False)
  57 
  58 
  59 trunc = ufunc.create_math_ufunc(
  60     'trunc', 1, 'cupy_trunc',
  61     '''Rounds each element of an array towards zero.
  62 
  63     .. seealso:: :data:`numpy.trunc`
  64 
  65     ''', support_complex=False)
  66 
  67 
  68 fix = core.create_ufunc(
  69     'cupy_fix', ('e->e', 'f->f', 'd->d'),
  70     'out0 = (in0 >= 0.0) ? floor(in0): ceil(in0)',
  71     doc='''If given value x is positive, it return floor(x).
  72     Else, it return ceil(x).
  73 
  74     .. seealso:: :func:`numpy.fix`
  75 
  76     ''')
  77
  [end of cupy/math/rounding.py]
  </code>
  
  I need you to solve this issue by generating a single patch file that I can apply directly to this repository using git apply. Please respond with a single patch file in the following format.
  <patch>
  diff --git a/file.py b/file.py
  --- a/file.py
  +++ b/file.py
  @@ -1,27 +1,35 @@
   def euclidean(a, b):
  -    while b:
  -        a, b = b, a % b
  -    return a
  +    if b == 0:
  +        return a
  +    return euclidean(b, a % b)
   
   
   def bresenham(x0, y0, x1, y1):
       points = []
       dx = abs(x1 - x0)
       dy = abs(y1 - y0)
  -    sx = 1 if x0 < x1 else -1
  -    sy = 1 if y0 < y1 else -1
  -    err = dx - dy
  +    x, y = x0, y0
  +    sx = -1 if x0 > x1 else 1
  +    sy = -1 if y0 > y1 else 1
   
  -    while True:
  -        points.append((x0, y0))
  -        if x0 == x1 and y0 == y1:
  -            break
  -        e2 = 2 * err
  -        if e2 > -dy:
  -            err -= dy
  -            x0 += sx
  -        if e2 < dx:
  -            err += dx
  -            y0 += sy
  +    if dx > dy:
  +        err = dx / 2.0
  +        while x != x1:
  +            points.append((x, y))
  +            err -= dy
  +            if err < 0:
  +                y += sy
  +                err += dx
  +            x += sx
  +    else:
  +        err = dy / 2.0
  +        while y != y1:
  +            points.append((x, y))
  +            err -= dx
  +            if err < 0:
  +                x += sx
  +                err += dy
  +            y += sy
  +
  +    points.append((x, y))
       return points
  
  </patch>
golden_diff: diff --git a/cupy/math/rounding.py b/cupy/math/rounding.py
  --- a/cupy/math/rounding.py
  +++ b/cupy/math/rounding.py
  @@ -8,7 +8,7 @@
   
       Args:
           a (cupy.ndarray): The source array.
  -        decimals (int): umber of decimal places to round to (default: 0).
  +        decimals (int): Number of decimal places to round to (default: 0).
               If decimals is negative, it specifies the number of positions to
               the left of the decimal point.
           out (cupy.ndarray): Output array.
  
verification_info: {"golden_diff": "diff --git a/cupy/math/rounding.py b/cupy/math/rounding.py\n--- a/cupy/math/rounding.py\n+++ b/cupy/math/rounding.py\n@@ -8,7 +8,7 @@\n \n     Args:\n         a (cupy.ndarray): The source array.\n-        decimals (int): umber of decimal places to round to (default: 0).\n+        decimals (int): Number of decimal places to round to (default: 0).\n             If decimals is negative, it specifies the number of positions to\n             the left of the decimal point.\n         out (cupy.ndarray): Output array.\n", "issue": "`around` result is different compared to numpy\n```\r\n>>> np.__version__\r\n'1.16.4'\r\n>>> np.around([2.5])\r\narray([2.])\r\n>>> cupy.__version__\r\n'7.0.0a1'\r\n>>> cupy.around([2.5])\r\narray([3.])\r\n```\r\nNumPy seems to round to even.\n", "before_files": [{"content": "from cupy import core\nfrom cupy.core import fusion\nfrom cupy.math import ufunc\n\n\ndef around(a, decimals=0, out=None):\n    \"\"\"Rounds to the given number of decimals.\n\n    Args:\n        a (cupy.ndarray): The source array.\n        decimals (int): umber of decimal places to round to (default: 0).\n            If decimals is negative, it specifies the number of positions to\n            the left of the decimal point.\n        out (cupy.ndarray): Output array.\n\n    Returns:\n        cupy.ndarray: Rounded array.\n\n    .. seealso:: :func:`numpy.around`\n\n    \"\"\"\n    if fusion._is_fusing():\n        return fusion._call_ufunc(core.core._round_ufunc, a, decimals, out=out)\n    a = core.array(a, copy=False)\n    return a.round(decimals, out=out)\n\n\ndef round_(a, decimals=0, out=None):\n    return around(a, decimals, out=out)\n\n\nrint = ufunc.create_math_ufunc(\n    'rint', 1, 'cupy_rint',\n    '''Rounds each element of an array to the nearest integer.\n\n    .. seealso:: :data:`numpy.rint`\n\n    ''')\n\n\nfloor = ufunc.create_math_ufunc(\n    'floor', 1, 'cupy_floor',\n    '''Rounds each element of an array to its floor integer.\n\n    .. seealso:: :data:`numpy.floor`\n\n    ''', support_complex=False)\n\n\nceil = ufunc.create_math_ufunc(\n    'ceil', 1, 'cupy_ceil',\n    '''Rounds each element of an array to its ceiling integer.\n\n    .. seealso:: :data:`numpy.ceil`\n\n    ''', support_complex=False)\n\n\ntrunc = ufunc.create_math_ufunc(\n    'trunc', 1, 'cupy_trunc',\n    '''Rounds each element of an array towards zero.\n\n    .. seealso:: :data:`numpy.trunc`\n\n    ''', support_complex=False)\n\n\nfix = core.create_ufunc(\n    'cupy_fix', ('e->e', 'f->f', 'd->d'),\n    'out0 = (in0 >= 0.0) ? floor(in0): ceil(in0)',\n    doc='''If given value x is positive, it return floor(x).\n    Else, it return ceil(x).\n\n    .. seealso:: :func:`numpy.fix`\n\n    ''')\n", "path": "cupy/math/rounding.py"}]}