ak.round#
Defined in awkward.operations.ak_round on line 19.
- ak.round(array, decimals=0, out=UNSUPPORTED, highlevel=True, behavior=None, attrs=None)#
- Parameters:
array – array_like Input array.
decimals – int, optional 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 – unsupported optional argument
highlevel (bool, default is True) – If True, return an
ak.Array
; otherwise, return a low-levelak.contents.Content
subclass.behavior (None or dict) – Custom
ak.behavior
for the output array, if high-level.attrs (None or dict) – Custom attributes for the output array, if high-level.
Returns the real components of the given array elements. If the arrays have complex elements, the returned arrays are floats.