# Log2Ceil(int)

> Returns the binary logarithm of the value, but the result is rounded up to the nearest integer.

## Definition

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

```csharp
public static int Log2Ceil(int value)
```

### Parameters

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

### Returns

| Type                                                       | Description                                                                               |
| ---------------------------------------------------------- | ----------------------------------------------------------------------------------------- |
| [int](https://learn.microsoft.com/dotnet/api/system.int32) | The binary logarithm of the `value`, but the result is rounded up to the nearest integer. |
