RealDocs

UKismetMathLibrary::Multiply_IntFloat

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

Description

Multiplies an integer by a float and returns the result as a double. Exposed in Blueprints as the 'int * float' node for mixed-type arithmetic.

Caveats & Gotchas

  • The integer A is implicitly widened to double before multiplication; no rounding occurs on the input, but the result is a double and may lose precision if cast back to int32.
  • In C++ you can simply write 'A * B' directly — this function exists primarily to give Blueprints a typed mixed-operand node.

Signature

static UE_INL_API double Multiply_IntFloat(int32 A, double B);

Parameters

Name Type Description Default
A int32 The integer operand.
B double The float operand.

Return Type

double

Example

Scale an integer count by a float factor C++
int32 ItemCount = 10;
double ScaledValue = UKismetMathLibrary::Multiply_IntFloat(ItemCount, 2.5);
// ScaledValue == 25.0

Tags

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.