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

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

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

# trunc

[common]\
fun [trunc](trunc.md)(input: [Tensor](../Tensor/index.md)): [Tensor](../Tensor/index.md)

`trunc(input: Tensor)`: the `trunc` operator. Elementwise truncation toward zero (drops the fraction). Value-domain violations follow IEEE semantics (NaN / ±inf in the result), never an error.