Returns the greatest common divisor of two integers.
Namespace:
Extreme.Mathematics
Assembly:
Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.1
public static long GreatestCommonDivisor(
long a,
long b
)
Public Shared Function GreatestCommonDivisor (
a As Long,
b As Long
) As Long
public:
static long long GreatestCommonDivisor(
long long a,
long long b
)
static member GreatestCommonDivisor :
a : int64 *
b : int64 -> int64
Parameters
- a
- Type: SystemInt64
An integer. - b
- Type: SystemInt64
An integer.
Return Value
Type:
Int64The greatest common divisor of
a
and
b.
Reference