RealDocs

UKismetMathLibrary::Multiply_Int64Int64

function Engine Blueprint Since 4.0
#include "Kismet/KismetMathLibrary.h"
Access: public Specifiers: staticBlueprintPure

Description

Multiplies two 64-bit integers and returns a 64-bit result (A * B). Use when int32 would overflow for large counts or timestamps.

Caveats & Gotchas

  • There is no 128-bit intermediate result — overflow wraps silently in two's complement. When multiplying two large int64 values the product can overflow; consider clamping or checking magnitude before multiplying.
  • Blueprint integer64 support was limited in early UE5 versions; if targeting UE 4.x the int64 Blueprint nodes may not be available on all platforms. Test on your minimum-supported version.

Signature

static UE_INL_API int64 Multiply_Int64Int64(int64 A, int64 B);

Parameters

Name Type Description Default
A int64 First multiplicand.
B int64 Second multiplicand.

Return Type

int64

Example

Compute byte size from large counts C++
int64 TotalBytes = UKismetMathLibrary::Multiply_Int64Int64(NumRecords, static_cast<int64>(RecordSize));

Version History

Introduced in: 4.0

Version Status Notes
5.6 stable

Feedback

Was this helpful?

Suggest an edit

Select a field above to begin editing.