# SubSat(long, long)

> Atomically subtracts a value from this counter. The result will not be less than a minimum value.

## Definition

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

```csharp
public long SubSat(long value, long min = -9223372036854775808)
```

### Parameters

**** (\[long]\(https\://learn.microsoft.com/dotnet/api/system.int64)): The value to subtract from this counter.**** (\[long]\(https\://learn.microsoft.com/dotnet/api/system.int64)): The minimum which the result will not be less than.

### Returns

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