---
title: "roundInPlace"
sidebar_label: "roundInPlace"
description: "Kotlin binding reference: roundInPlace."
---

<!-- Generated by tools/api_reference/generate_api_docs.py. Do not edit. -->

//[clika-runtime](../../../index.md)/[io.clika.runtime](../index.md)/[Ops](index.md)/[roundInPlace](roundInPlace.md)

# roundInPlace

[common]\
fun [roundInPlace](roundInPlace.md)(self: [Tensor](../Tensor/index.md), decimals: [Long](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html) = 0): [Tensor](../Tensor/index.md)

`roundInPlace(self: Tensor, decimals: Long = 0L)`: the `round_` operator. In-place `round`: writes the result through `self`; same formula, arguments, and error conditions as `round()`. A view input writes through its base storage. Returns `self` under the value surface, `Result<void>` under the `Result` surface; `CLIKART_CHECK` is the mode-stable spelling. Writes through `self` and returns it, so calls chain.