# Sub(long)

> 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 long Sub(long value)
```

### Parameters

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

### Returns

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