UKismetMathLibrary::FFloor64
#include "Kismet/KismetMathLibrary.h"
Access: public
Specifiers: staticBlueprintPureUFUNCTION
Description
Rounds A down towards negative infinity and returns an int64. Use instead of FFloor when the result might exceed int32 range.
Caveats & Gotchas
- • The int64 return type avoids the overflow risk of FFloor, but doubles only have 53-bit mantissa precision. For values above ~9 quadrillion the double input itself may already lack sub-integer precision.
- • Blueprint labels this 'Floor to Integer64'. Mixing this with int32 Floor nodes in the same graph is a common source of Blueprint type-mismatch compile errors.
Signature
static UE_INL_API int64 FFloor64(double A); Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| A | double | The floating-point value to floor. | — |
Return Type
int64 Example
Convert a large world-space Z position to a grid cell index C++
double WorldZ = -3000000.75;
int64 CellIndex = UKismetMathLibrary::FFloor64(WorldZ); // returns -3000001 Tags
Version History
Introduced in: 5.0
| Version | Status | Notes |
|---|---|---|
| 5.6 | stable | — |
Feedback
Was this helpful?