Skip to main content
Ctrl+K
NumPy v2.2 Manual - Home NumPy v2.2 Manual - Home
  • User Guide
  • API reference
  • Building from source
  • Development
  • Release notes
  • Learn
    • NEPs
  • GitHub
  • User Guide
  • API reference
  • Building from source
  • Development
  • Release notes
  • Learn
  • NEPs
  • GitHub

Section Navigation

  • NumPy’s module structure
  • Array objects
  • Universal functions (ufunc)
  • Routines and objects by topic
    • Constants
    • Array creation routines
    • Array manipulation routines
    • Bit-wise operations
    • String functionality
    • Datetime support functions
    • Data type routines
    • Mathematical functions with automatic domain
    • Floating point error handling
    • Exceptions and Warnings (numpy.exceptions)
    • Discrete Fourier Transform (numpy.fft)
    • Functional programming
    • Input and output
    • Indexing routines
    • Linear algebra (numpy.linalg)
    • Logic functions
    • Masked array operations
    • Mathematical functions
      • numpy.sin
      • numpy.cos
      • numpy.tan
      • numpy.arcsin
      • numpy.asin
      • numpy.arccos
      • numpy.acos
      • numpy.arctan
      • numpy.atan
      • numpy.hypot
      • numpy.arctan2
      • numpy.atan2
      • numpy.degrees
      • numpy.radians
      • numpy.unwrap
      • numpy.deg2rad
      • numpy.rad2deg
      • numpy.sinh
      • numpy.cosh
      • numpy.tanh
      • numpy.arcsinh
      • numpy.asinh
      • numpy.arccosh
      • numpy.acosh
      • numpy.arctanh
      • numpy.atanh
      • numpy.round
      • numpy.around
      • numpy.rint
      • numpy.fix
      • numpy.floor
      • numpy.ceil
      • numpy.trunc
      • numpy.prod
      • numpy.sum
      • numpy.nanprod
      • numpy.nansum
      • numpy.cumulative_sum
      • numpy.cumulative_prod
      • numpy.cumprod
      • numpy.cumsum
      • numpy.nancumprod
      • numpy.nancumsum
      • numpy.diff
      • numpy.ediff1d
      • numpy.gradient
      • numpy.cross
      • numpy.trapezoid
      • numpy.exp
      • numpy.expm1
      • numpy.exp2
      • numpy.log
      • numpy.log10
      • numpy.log2
      • numpy.log1p
      • numpy.logaddexp
      • numpy.logaddexp2
      • numpy.i0
      • numpy.sinc
      • numpy.signbit
      • numpy.copysign
      • numpy.frexp
      • numpy.ldexp
      • numpy.nextafter
      • numpy.spacing
      • numpy.lcm
      • numpy.gcd
      • numpy.add
      • numpy.reciprocal
      • numpy.positive
      • numpy.negative
      • numpy.multiply
      • numpy.divide
      • numpy.power
      • numpy.pow
      • numpy.subtract
      • numpy.true_divide
      • numpy.floor_divide
      • numpy.float_power
      • numpy.fmod
      • numpy.mod
      • numpy.modf
      • numpy.remainder
      • numpy.divmod
      • numpy.angle
      • numpy.real
      • numpy.imag
      • numpy.conj
      • numpy.conjugate
      • numpy.maximum
      • numpy.max
      • numpy.amax
      • numpy.fmax
      • numpy.nanmax
      • numpy.minimum
      • numpy.min
      • numpy.amin
      • numpy.fmin
      • numpy.nanmin
      • numpy.convolve
      • numpy.clip
      • numpy.sqrt
      • numpy.cbrt
      • numpy.square
      • numpy.absolute
      • numpy.fabs
      • numpy.sign
      • numpy.heaviside
      • numpy.nan_to_num
      • numpy.real_if_close
      • numpy.interp
      • numpy.bitwise_count
    • Miscellaneous routines
    • Polynomials
    • Random sampling (numpy.random)
    • Set routines
    • Sorting, searching, and counting
    • Statistics
    • Test support (numpy.testing)
    • Window functions
  • Typing (numpy.typing)
  • Packaging (numpy.distutils)
  • NumPy C-API
  • Array API standard compatibility
  • CPU/SIMD optimizations
  • Thread Safety
  • Global Configuration Options
  • NumPy security
  • Status of numpy.distutils and migration advice
  • numpy.distutils user guide
  • NumPy and SWIG
  • NumPy reference
  • Routines and objects by topic
  • Mathematical functions
  • numpy.around

numpy.around#

numpy.around(a, decimals=0, out=None)[source]#

Round an array to the given number of decimals.

around is an alias of round.

See also

ndarray.round

equivalent method

round

alias for this function

ceil, fix, floor, rint, trunc

previous

numpy.round

next

numpy.rint

On this page
  • around

© Copyright 2008-2024, NumPy Developers.

Created using Sphinx 7.2.6.

Built with the PyData Sphinx Theme 0.16.0.