RealDocs

UKismetMathLibrary::Add_DoubleDouble

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

Description

Returns the sum of two doubles (A + B). This is the Blueprint 'float + float' addition node, renamed to use double in UE5.

Caveats & Gotchas

  • In UE5 Blueprint, the 'float' type is actually double precision — this function's 'DoubleDouble' suffix reflects the underlying storage, not a separate type visible to Blueprint users.
  • In C++ code, prefer the built-in '+' operator directly; this wrapper has no benefit outside of Blueprint exposure.

Signature

static UE_INL_API double Add_DoubleDouble(double A, double B = 1.0);

Parameters

Name Type Description Default
A double The first addend.
B double The second addend. 1.0

Return Type

double

Example

Sum two damage values C++
double BaseDamage = 50.0;
double BonusDamage = 15.0;
double Total = UKismetMathLibrary::Add_DoubleDouble(BaseDamage, BonusDamage); // 65.0

Tags

Version History

Introduced in: 5.0

Version Status Notes
5.6 stable

Feedback

Was this helpful?

Suggest an edit

Select a field above to begin editing.