# operator ==(half, half)

> Returns whether two half values are bitwise equivalent.

## Definition

* **Type:** Operator
* **Namespace:** [Unity.Mathematics](/engine/6000.7/script-reference/unity/mathematics.md)
* **Assembly:** UnityEngine.MathematicsModule

```csharp
public static bool operator ==(half lhs, half rhs)
```

### Parameters

**** (\[half]\(/engine/6000.7/script-reference/unity/mathematics/half)): Left hand side half value to use in comparison.**** (\[half]\(/engine/6000.7/script-reference/unity/mathematics/half)): Right hand side half value to use in comparison.

### Returns

| Type                                                          | Description                                                          |
| ------------------------------------------------------------- | -------------------------------------------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | True if the two half values are bitwise equivalent, false otherwise. |
