UKismetMathLibrary::LessEqual_DoubleDouble
#include "Kismet/KismetMathLibrary.h"
Access: public
Specifiers: staticUFUNCTIONBlueprintPure
Description
Returns true if A is less than or equal to B (A <= B). This is the Blueprint 'float <= float' comparison node.
Caveats & Gotchas
- • Uses exact equality for the equal case — computed floats that are theoretically equal may fail due to floating-point rounding. For computed boundaries, add a small epsilon or use NearlyEqual_FloatFloat + Less_DoubleDouble.
- • Semantically equivalent to !Greater_DoubleDouble(A, B), but prefer this form for readability in Blueprint graphs.
Signature
static UE_INL_API bool LessEqual_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
Guard a percentage value in [0, 1] C++
double Alpha = ComputeBlendAlpha();
bool bValid = UKismetMathLibrary::GreaterEqual_DoubleDouble(Alpha, 0.0)
&& UKismetMathLibrary::LessEqual_DoubleDouble(Alpha, 1.0); See Also
Tags
Version History
Introduced in: 5.0
| Version | Status | Notes |
|---|---|---|
| 5.6 | stable | — |
Feedback
Was this helpful?