Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/Math > API/Runtime/Core/Math/FMath > API/Runtime/Core/Math/FMath/IsNearlyEqual
References
| Module | Core |
| Header | /Engine/Source/Runtime/Core/Public/Math/UnrealMathUtility.h |
| Include | #include "Math/UnrealMathUtility.h" |
static bool IsNearlyEqual
&40;
float A,
float B,
float ErrorTolerance
&41;
Remarks
Checks if two floating point numbers are nearly equal. true if A and B are nearly equal
Parameters
| Name | Description |
|---|---|
| A | First number to compare |
| B | Second number to compare |
| ErrorTolerance | Maximum allowed difference for considering them as 'nearly equal' |