UtilNumericsGetGreatestCommonDivisor(Decimal) 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.

Definition

Namespace: DevCase.Core.Math.Common
Assembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
public static decimal GetGreatestCommonDivisor(
	params decimal[] values
)

Parameters

values  Decimal
The values.

Return Value

Decimal
The resulting Greatest Common Divisor (GCD).

Remarks

See Also