Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/FMath
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static bool IsNearlyZero
(
float Value, |
Checks if a floating point number is nearly zero. | Math/UnrealMathUtility.h | |
static bool IsNearlyZero
(
double Value, |
Checks if a floating point number is nearly zero. | Math/UnrealMathUtility.h | |
static bool IsNearlyZero
(
Arg1 X, |
Math/UnrealMathUtility.h |
IsNearlyZero(float, float)
Description
Checks if a floating point number is nearly zero.
| Name | IsNearlyZero |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Math/UnrealMathUtility.h |
| Include Path | #include "Math/UnrealMathUtility.h" |
static bool IsNearlyZero
(
float Value,
float ErrorTolerance
)
true if Value is nearly zero
Parameters
| Name | Remarks |
|---|---|
| Value | Number to compare |
| ErrorTolerance | Maximum allowed difference for considering Value as 'nearly zero' |
IsNearlyZero(double, double)
Description
Checks if a floating point number is nearly zero.
| Name | IsNearlyZero |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Math/UnrealMathUtility.h |
| Include Path | #include "Math/UnrealMathUtility.h" |
static bool IsNearlyZero
(
double Value,
double ErrorTolerance
)
true if Value is nearly zero
Parameters
| Name | Remarks |
|---|---|
| Value | Number to compare |
| ErrorTolerance | Maximum allowed difference for considering Value as 'nearly zero' |
IsNearlyZero(Arg1, Arg2)
| Name | IsNearlyZero |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Math/UnrealMathUtility.h |
| Include Path | #include "Math/UnrealMathUtility.h" |
template<typename Arg1, typename Arg2, std::enable_if_t<((std::is_floating_point_v< Arg1 >||std::is_floating_point_v< Arg2 >) &&!std::is_same_v< Arg1, Arg2 >), int >>
static bool IsNearlyZero
(
Arg1 X,
Arg2 Y
)