# Equals

> Returns true if the half is bitwise equivalent to a given half, false otherwise.

## Definition

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

## Equals(half)

Returns true if the half is bitwise equivalent to a given half, false otherwise.

```csharp
public bool Equals(half rhs)
```

### Parameters

**** (\[half]\(/engine/6000.6/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 half value is bitwise equivalent to the input, false otherwise. |

## Equals(Object)

Returns true if the half is equal to a given half, false otherwise.

```csharp
public override bool Equals(object o)
```

### Parameters

**** (\[Object]\(https\://learn.microsoft.com/dotnet/api/system.object)): Right hand side object to use in comparison.

### Returns

| Type                                                          | Description                                                                    |
| ------------------------------------------------------------- | ------------------------------------------------------------------------------ |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | True if the object is of type half and is bitwise equivalent, false otherwise. |
