Click or drag to resize
Accord.NET (logo)

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
)
Request Example View Source

Parameters

a
Type: SystemInt32
First value.
b
Type: SystemInt32
Second value.

Return Value

Type: Int32
The greatest common divisor.
See Also