UKismetMathLibrary::Less_DoubleDouble
#include "Kismet/KismetMathLibrary.h"
Access: public
Specifiers: staticUFUNCTIONBlueprintPure
Description
Returns true if A is strictly less than B (A < B). This is the Blueprint 'float < float' comparison node.
Caveats & Gotchas
- • Strict inequality — returns false when A == B. For threshold checks where equality should pass, use LessEqual_DoubleDouble instead.
- • Do not use this to compare values that were produced by floating-point arithmetic and are expected to be equal — use NearlyEqual_FloatFloat for equality testing to avoid false negatives from rounding.
Signature
static UE_INL_API bool Less_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 health is below a threshold C++
double Health = 25.0;
if (UKismetMathLibrary::Less_DoubleDouble(Health, 30.0))
{
// Enter low-health state
} See Also
Tags
Version History
Introduced in: 5.0
| Version | Status | Notes |
|---|---|---|
| 5.6 | stable | — |
Feedback
Was this helpful?