---
title: "fmod function in Strata | Oplema"
description: "Find the remainder using division rounded down toward negative infinity. For example, fmod(5, 2) returns 1.0. Works in a Strata Formula or Filter."
url: "https://oplema.com/docs/strata/functions/fmod"
updated: "2026-11-04"
---

# fmod

Find the remainder using division rounded down toward negative infinity.

## Try an expression

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

### Expression

```
fmod(5, 2)
```

### Result

```
1.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 | 1 |

## Arguments and types

```
fmod(x, y)
```

**x**

Any value

**y**

Any value

Supported signatures (1)

```
fmod(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

[fdiv

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

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

Round a number down to the nearest whole number.

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

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

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

Round a number using the half-to-even rule for exact halfway cases.

](https://oplema.com/docs/strata/functions/roundbankers)

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

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