UKismetMathLibrary::Multiply_DoubleDouble
#include "Kismet/KismetMathLibrary.h"
Access: public
Specifiers: staticUFUNCTIONBlueprintPure
Description
Returns the product of two doubles (A * B). This is the commutative Blueprint 'float * float' multiplication node.
Caveats & Gotchas
- • The UFUNCTION metadata marks this as CommutativeAssociativeBinaryOperator, so Blueprint can collapse chains of multiplications into a single multi-input node; however in C++ each call is still a separate operation.
- • Multiplying very large doubles can overflow to infinity (IEEE 754) without any engine warning — check FMath::IsFinite on the result when working with unbounded input.
Signature
static UE_INL_API double Multiply_DoubleDouble(double A, double B); Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| A | double | The first factor. | — |
| B | double | The second factor. | — |
Return Type
double Example
Apply a speed multiplier C++
double BaseSpeed = 600.0;
double SpeedMultiplier = 1.5;
double FinalSpeed = UKismetMathLibrary::Multiply_DoubleDouble(BaseSpeed, SpeedMultiplier); // 900.0 Tags
Version History
Introduced in: 5.0
| Version | Status | Notes |
|---|---|---|
| 5.6 | stable | — |
Feedback
Was this helpful?