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

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

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

# frac

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

`frac(input: Tensor)`: the `frac` operator. Elementwise fractional part. Keeps the sign of `input` (`frac(-1.5) == -0.5`). Value-domain violations follow IEEE semantics (NaN / ±inf in the result), never an error.