---
title: "fdiv function in Strata | Oplema"
description: "Divide two numbers and round the quotient down to a whole number, stored as DOUBLE. For example, fdiv(5, 2) returns 2.0."
url: "https://oplema.com/docs/strata/functions/fdiv"
updated: "2026-11-04"
---

# fdiv

Divide two numbers and round the quotient down to a whole number, stored as DOUBLE.

## Try an expression

In [Formula](https://oplema.com/docs/strata/prep/formula), enter the expression and set Output type to **DOUBLE**.

### Expression

```
fdiv(5, 2)
```

### Result

```
2.0
```

To use your own data, replace the example values with column names. Keep format strings and other options as written.

Try it live in Formula

Result
| id | result |
| --- | --- |
| 1 | 2 |

## Arguments and types

```
fdiv(x, y)
```

**x**

Any value

**y**

Any value

Supported signatures (1)

```
fdiv(x: ANY, y: ANY)
```

The result type can depend on the input types. See DuckDB for the full argument rules.

## Things to know

If the first argument is missing, the result is NULL.

## Related functions

[divide

Divide whole numbers and discard the fractional part.

](https://oplema.com/docs/strata/functions/divide)[floor

Round a number down to the nearest whole number.

](https://oplema.com/docs/strata/functions/floor)[round

Round decimal values to a consistent number of places for prices, measurements or reports.

](https://oplema.com/docs/strata/functions/round)[round\_even

Round a number, resolving exact halfway cases toward the nearest even digit.

](https://oplema.com/docs/strata/functions/round-even)

[Browse numbers](https://oplema.com/docs/strata/functions#numbers) [DuckDB documentation](https://duckdb.org/docs/current/sql/functions/numeric.html#fdivx-y)

Function metadata from DuckDB, used under the [MIT license](https://github.com/duckdb/duckdb/blob/v1.5.4/LICENSE).
