RealDocs

UKismetMathLibrary::EqualEqual_DoubleDouble

function Engine Blueprint Since 5.0
#include "Kismet/KismetMathLibrary.h"
Access: public Specifiers: staticUFUNCTIONBlueprintPure

Description

Returns true if A is exactly equal to B (A == B). Performs a bitwise IEEE 754 equality check with no tolerance.

Caveats & Gotchas

  • Exact floating-point equality is almost never reliable for computed values — two calculations that are mathematically identical can produce different bit patterns due to rounding. Use NearlyEqual_FloatFloat for calculated results.
  • This node is safe for comparing constants or values that were never computed (e.g., checking if a result is exactly 0.0 after an integer cast to double), but dangerous for anything derived from arithmetic.

Signature

static UE_INL_API bool EqualEqual_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

Check if a timer resets to exactly zero C++
// Only safe because 0.0 is an exact IEEE 754 value
if (UKismetMathLibrary::EqualEqual_DoubleDouble(TimerValue, 0.0))
{
    OnTimerReset();
}

Tags

Version History

Introduced in: 5.0

Version Status Notes
5.6 stable

Feedback

Was this helpful?

Suggest an edit

Select a field above to begin editing.