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

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

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

# remainder

[common]\
fun [remainder](remainder.md)(input: [Tensor](../Tensor/index.md), other: [Tensor](../Tensor/index.md)): [Tensor](../Tensor/index.md)

`remainder(input: Tensor, other: Tensor)`: the `remainder` operator. Elementwise remainder with the sign of the DIVISOR, i.e. `ops::mod` with `ModMode::Python`. Broadcasts and promotes as `add`.

[common]\
fun [remainder](remainder.md)(input: [Tensor](../Tensor/index.md), other: [Double](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-double/index.html)): [Tensor](../Tensor/index.md)

`remainder(input: Tensor, other: Double)`: the number form of `remainder`, `other` as a scalar.