FMath::GreatestCommonDivisor

Use the Euclidean method to find the GCD.

Windows
MacOS
Linux

References

Module

Core

Header

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

Include

#include "Math/UnrealMathUtility.h"

Syntax

static int32 GreatestCommonDivisor
(
    int32 a,
    int32 b
)

Remarks

Use the Euclidean method to find the GCD.

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