RealDocs

UKismetMathLibrary::Multiply_IntInt

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

Description

Multiplies two integers and returns the product. Maps directly to the `int * int` Blueprint node.

Caveats & Gotchas

  • No overflow detection: multiplying large values (e.g. 100000 * 100000) silently overflows int32 and returns a garbage result. Use int64 arithmetic or clamp inputs when the product may exceed ~2.1 billion.
  • The result is a plain C++ int32 multiplication — no saturation, no checked-multiply. Unlike some game math helpers, there is no debug-mode assertion on overflow.

Signature

static UE_INL_API int32 Multiply_IntInt(int32 A, int32 B);

Parameters

Name Type Description Default
A int32 First factor.
B int32 Second factor.

Return Type

int32

Example

Scaling a tile count C++
int32 TotalCells = UKismetMathLibrary::Multiply_IntInt(GridWidth, GridHeight);

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.