# Sub(int)

> Atomically subtracts a value from this counter.

## Definition

* **Type:** Method
* **Namespace:** [Unity.Collections.LowLevel.Unsafe](/engine/6000.7/script-reference/unity/collections/lowlevel/unsafe.md)
* **Assembly:** UnityEngine.ManagedKernelModule

```csharp
public int Sub(int value)
```

### Parameters

**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): The value to subtract.

### Returns

| Type                                                       | Description                             |
| ---------------------------------------------------------- | --------------------------------------- |
| [int](https://learn.microsoft.com/dotnet/api/system.int32) | The original value before the subtract. |
