BigInteger.Gcd Method

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Computes the greatest common divisor.

Namespace:  Microsoft.SolverFoundation.Common
Assembly:  Microsoft.Solver.Foundation (in Microsoft.Solver.Foundation.dll)

Syntax

'Declaration
Public Shared Function Gcd ( _
    bn1 As BigInteger, _
    bn2 As BigInteger _
) As BigInteger
public static BigInteger Gcd(
    BigInteger bn1,
    BigInteger bn2
)
public:
static BigInteger Gcd(
    BigInteger bn1, 
    BigInteger bn2
)
static member Gcd : 
        bn1:BigInteger * 
        bn2:BigInteger -> BigInteger 
public static function Gcd(
    bn1 : BigInteger, 
    bn2 : BigInteger
) : BigInteger

Parameters

Return Value

Type: Microsoft.SolverFoundation.Common.BigInteger
The largest integer that divides the two big integers without a remainder.

.NET Framework Security

See Also

Reference

BigInteger Structure

Microsoft.SolverFoundation.Common Namespace