FMath::LeastCommonMultiplier

LCM = a/gcd * b a and b are the number we want to find the lcm

Windows
MacOS
Linux

References

Module

Core

Header

/Engine/Source/Runtime/Core/Public/Math/UnrealMathUtility.h

Include

#include "Math/UnrealMathUtility.h"

Syntax

static int32 LeastCommonMultiplier
(
    int32 a,
    int32 b
)

Remarks

LCM = a/gcd * b a and b are the number we want to find the lcm

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss