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

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

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

# floorDivide

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

`floorDivide(input: Tensor, other: Tensor)`: the `floor_divide` operator. Elementwise `floor(a / other)`, i.e. `ops::div` with `RoundingMode::Floor`. Broadcasts and promotes as `add`.

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

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