FMath::IsNearlyZero

Checks if a floating point number is nearly zero.

Windows
MacOS
Linux

References

Module

Core

Header

/Engine/Source/Runtime/Core/Public/Math/UnrealMathUtility.h

Include

#include "Math/UnrealMathUtility.h"

Syntax

static bool IsNearlyZero
(
    float Value,
    float ErrorTolerance
)

Remarks

Checks if a floating point number is nearly zero.

Returns

true if Value is nearly zero

Parameters

Parameter

Description

Value

Number to compare

ErrorTolerance

Maximum allowed difference for considering Value as 'nearly zero'

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss