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