|
ToolsGreatestCommonDivisor Method
|
Gets the greatest common divisor between two integers.
Namespace:
Accord.Math
Assembly:
Accord.Math (in Accord.Math.dll) Version: 3.8.0
Syntax public static int GreatestCommonDivisor(
int a,
int b
)
Public Shared Function GreatestCommonDivisor (
a As Integer,
b As Integer
) As Integer
Request Example
View SourceParameters
- a
- Type: SystemInt32
First value. - b
- Type: SystemInt32
Second value.
Return Value
Type:
Int32The greatest common divisor.
See Also