---
title: "modulo-one"
description: "Detect remainder operations that are always zero."
image: "https://strider.gempir.com/og.png"
---

> Documentation Index
> Fetch the complete documentation index at: https://strider.gempir.com/llms.txt
> Use this file to discover all available pages before exploring further.

# modulo-one

**Default severity:** `error`

Every integer is evenly divisible by one, so `value % 1` always produces zero.
The expression usually contains a mistaken divisor.

## Bad

```go
remainder := value % 1
```

## Good

```go
remainder := value % divisor
```

Source: https://strider.gempir.com/lints/modulo-one/index.mdx
