RealDocs

UKismetMathLibrary::Greater_DoubleDouble

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

Description

Returns true if A is strictly greater than B (A > B). This is the Blueprint 'float > float' comparison node.

Caveats & Gotchas

  • Returns false when A == B — use GreaterEqual_DoubleDouble if the equal case should pass.
  • Comparing NaN always returns false regardless of the other operand; ensure inputs are finite when dealing with computed or user-supplied values.

Signature

static UE_INL_API bool Greater_DoubleDouble(double A, double B);

Parameters

Name Type Description Default
A double The left-hand operand.
B double The right-hand operand.

Return Type

bool

Example

Check if speed exceeds maximum C++
double CurrentSpeed = GetVelocity().Size();
if (UKismetMathLibrary::Greater_DoubleDouble(CurrentSpeed, MaxSpeed))
{
    ApplySpeedCap();
}

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.