# Sandbox.SandboxSystemExtensions.UnsignedMod

```csharp
static int UnsignedMod(int a, int b)
```

Does what you expected to happen when you did "a % b", that is, handles negative `a` values by returning a positive number from the end.

### Parameters

- `a` (`int`)
- `b` (`int`)

### Returns

`int`

Declared in [Sandbox.SandboxSystemExtensions](/api/Sandbox.SandboxSystemExtensions).
Assembly: `Sandbox.System`.
