UtilNumericsGetGreatestCommonDivisor(UInt64) Method
Gets the Greatest Common Divisor (GCD) of one or more values.
That is, the largest positive value that divides each of the given values. For example, the GCD of 8 and 12 is 4.
Namespace: DevCase.Core.Math.CommonAssembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
public static ulong GetGreatestCommonDivisor(
params ulong[] values
)
Public Shared Function GetGreatestCommonDivisor (
ParamArray values As ULong()
) As ULong
Dim values As ULong()
Dim returnValue As ULong
returnValue = UtilNumerics.GetGreatestCommonDivisor(values)
public:
static unsigned long long GetGreatestCommonDivisor(
... array<unsigned long long>^ values
)
static member GetGreatestCommonDivisor :
values : uint64[] -> uint64
No code example is currently available or this language may not be supported.
- values UInt64
-
The values.
UInt64
The resulting Greatest Common Divisor (GCD).