Getting Started
User Guide
Visualization
Reference
bins
bin
histogram
x
y
transform_coords
Tutorials
About
Round to the nearest integer of all values passed in x.
Note: if the number being rounded is halfway between two integers it will round to the nearest even number. For example 1.5 and 2.5 will both round to 2.0, -0.5 and 0.5 will both round to 0.0.
x (Union[Variable, DataArray, Dataset]) – Input data.
Union
Variable
DataArray
Dataset
out (Union[Variable, DataArray, Dataset, None], default: None) – Optional output buffer.
None
Union[Variable, DataArray, Dataset] – Rounded version of the data passed to the nearest integer.