UKismetMathLibrary::Subtract_Int64Int64
#include "Kismet/KismetMathLibrary.h"
Access: public
Specifiers: staticUFUNCTIONBlueprintPure
Description
Subtracts B from A and returns the result as an int64. Exposes the integer64 subtraction operator to Blueprint graphs.
Caveats & Gotchas
- • No overflow protection — if A - B underflows past INT64_MIN (-9,223,372,036,854,775,808) the result wraps around silently in C++. Blueprint does not surface this as an error.
- • B defaults to 1, matching the decrement idiom used by the Blueprint compact node. Be explicit when calling from C++ to avoid ambiguity with the default.
Signature
static UE_INL_API int64 Subtract_Int64Int64(int64 A, int64 B = 1); Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| A | int64 | Minuend. | — |
| B | int64 | Subtrahend. | 1 |
Return Type
int64 Example
Subtract two int64 values C++
int64 A = 10000000000LL;
int64 B = 3000000000LL;
int64 Result = UKismetMathLibrary::Subtract_Int64Int64(A, B); // 7000000000 Tags
Version History
Introduced in: unknown
| Version | Status | Notes |
|---|---|---|
| 5.6 | stable | — |
Feedback
Was this helpful?