# AreEqual(float, float, float)

> Performs equality check with absolute error check.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine.Assertions.Comparers](/engine/6000.0/script-reference/unityengine/assertions/comparers.md)
* **Assembly:** UnityEngine.CoreModule

```csharp
public static bool AreEqual(float expected, float actual, float error)
```

### Parameters

**** (\[float]\(https\://learn.microsoft.com/dotnet/api/system.single)): Expected value.**** (\[float]\(https\://learn.microsoft.com/dotnet/api/system.single)): Actual value.**** (\[float]\(https\://learn.microsoft.com/dotnet/api/system.single)): Comparison error.

### Returns

| Type                                                          | Description               |
| ------------------------------------------------------------- | ------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | Result of the comparison. |
