UKismetMathLibrary::GreaterEqual_DoubleDouble
#include "Kismet/KismetMathLibrary.h"
Access: public
Specifiers: staticUFUNCTIONBlueprintPure
Description
Returns true if A is greater than or equal to B (A >= B). This is the Blueprint 'float >= float' comparison node.
Caveats & Gotchas
- • The equal case uses exact comparison — if A and B are the results of different floating-point calculations that should theoretically be equal, prefer NearlyEqual_FloatFloat combined with Greater_DoubleDouble.
- • Commonly used to test minimum thresholds (e.g., is cooldown timer >= CooldownDuration?). For range tests combining both a min and max, InRange_FloatFloat is more expressive.
Signature
static UE_INL_API bool GreaterEqual_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 cooldown has expired C++
double Elapsed = GetWorld()->GetTimeSeconds() - LastUseTime;
if (UKismetMathLibrary::GreaterEqual_DoubleDouble(Elapsed, CooldownDuration))
{
bCanUse = true;
} See Also
Tags
Version History
Introduced in: 5.0
| Version | Status | Notes |
|---|---|---|
| 5.6 | stable | — |
Feedback
Was this helpful?