warp.round ========== .. currentmodule:: warp._src.lang .. function:: round(x: Float) -> Float .. wp-function-tags:: :kernel: true :python: true :differentiable: false Compute the nearest integer value to ``x``, rounding halfway cases away from zero. This is the most intuitive form of rounding in the colloquial sense, but can be slower than other options like :func:`~warp._src.lang.rint`. Differs from :func:`numpy.round`, which behaves the same way as :obj:`numpy.rint`.