code: def around(A, decimals=0):
      
      if isinstance(A, Poly):
          B = A.A.copy()
          for key in A.keys:
              B[key] = around(B[key], decimals)
          return Poly(B, A.dim, A.shape, A.dtype)
  
      return numpy.around(A, decimals)
docs: Evenly round to the given number of decimals.
  
      Args:
          A (Poly, numpy.ndarray):
              Input data.
          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.
  
      Returns:
          (Poly, numpy.ndarray):
              Same type as A.
  
      Examples:
          >>> P = chaospy.prange(3)*2**-numpy.arange(0, 6, 2, float)
          >>> print(P)
          [1.0, 0.25q0, 0.0625q0^2]
          >>> print(chaospy.around(P))
          [1.0, 0.0, 0.0]
          >>> print(chaospy.around(P, 2))
          [1.0, 0.25q0, 0.06q0^2]