RealDocs

UKismetMathLibrary::Loge

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

Description

Returns the natural logarithm (base e) of A. The inverse of Exp.

Caveats & Gotchas

  • Passing A <= 0 returns -infinity (A == 0) or NaN (A < 0); always ensure the input is positive before calling, especially when computing logs of distances or ratios that could legitimately reach zero.
  • In Blueprint the node is labelled 'Natural Log' — searching for 'Loge' in the node browser may not surface it; look for the display name instead.

Signature

static UE_INL_API double Loge(double A);

Parameters

Name Type Description Default
A double The value to compute the natural logarithm of. Must be > 0.

Return Type

double

Example

Convert an exponential decay constant to half-life C++
double DecayConstant = 0.5;
double HalfLife = UKismetMathLibrary::Loge(2.0) / DecayConstant; // ≈ 1.386

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.