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
- bn1
Type: Microsoft.SolverFoundation.Common.BigInteger
A BigInteger value.
- bn2
Type: Microsoft.SolverFoundation.Common.BigInteger
A BigInteger value.
Return Value
Type: Microsoft.SolverFoundation.Common.BigInteger
The largest integer that divides the two big integers without a remainder.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.