---
title: "floatdiv | open.mp"
description: "Divide one float by another one."
canonical: https://omp.itsneufox.com/bs/docs/scripting/functions/floatdiv
language: bs
---

# floatdiv

## Deskripcija

Divide one float by another one. Redundant as the division operator (/) does the same thing.

| Ime | Deskripcija |
| --- | --- |
| Float:dividend | First float. |
| Float:divisor | Second float (dividates the first float.) |

## Returns

The quotient of the two given floats.

## Primjeri

```c
public OnGameModeInit()
{
    new Float:Number1 = 8.05, Float:Number2 = 3.5; //Declares two floats, Number1 (8.05) and Number2 (3.5)
    new Float:Quotient;
    Quotient = floatdiv(Number1, Number2);       //Saves the quotient(=8.05/3.5 = 2.3) of Number1 and Number2 in the float "Quotient"
    return 1;
}
```

## Srodne Funkcije

-   [floatadd](https://omp.itsneufox.com/bs/docs/scripting/functions/floatadd): Dodaje dva floata zajedno.
-   [floatsub](https://omp.itsneufox.com/bs/docs/scripting/functions/floatsub): Oduzmi jedan float od drugog.
-   [floatmul](https://omp.itsneufox.com/bs/docs/scripting/functions/floatmul): Pomnožite dva floata.
