UKismetMathLibrary::NotEqual_DoubleDouble
#include "Kismet/KismetMathLibrary.h"
Access: public
Specifiers: staticUFUNCTIONBlueprintPure
Description
Returns true if A is not exactly equal to B (A != B). The logical inverse of EqualEqual_DoubleDouble.
Caveats & Gotchas
- • Like EqualEqual_DoubleDouble, this uses exact bitwise comparison — two computed values that are mathematically equal may still compare as not-equal due to floating-point rounding. Use !NearlyEqual_FloatFloat for computed values.
- • In Blueprint, this node is the '!= (Float)' node; its primary use is filtering out sentinel or reset values (e.g., != 0.0) rather than comparing computed results.
Signature
static UE_INL_API bool NotEqual_DoubleDouble(double A, double B); Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| A | double | The first value to compare. | — |
| B | double | The second value to compare. | — |
Return Type
bool Example
Skip processing when a value is a known sentinel C++
// Safe: comparing against the exact constant -1.0 as an invalid sentinel
if (UKismetMathLibrary::NotEqual_DoubleDouble(Score, -1.0))
{
ProcessScore(Score);
} Tags
Version History
Introduced in: 5.0
| Version | Status | Notes |
|---|---|---|
| 5.6 | stable | — |
Feedback
Was this helpful?