Documents for PDF .NET Edition
GrapeCity.Documents.Imaging Assembly / GrapeCity.Documents.Imaging.jpeg.jj2000.j2k.util Namespace / MathUtil Class / gcd Method / gcd(Int32,Int32) Method

In This Topic
    gcd(Int32,Int32) Method
    In This Topic
    Method that calculates the Greatest Common Divisor (GCD) of two positive integer numbers.
    Syntax
    'Declaration
     
    Public Overloads Shared Function gcd( _
       ByVal x1 As System.Integer, _
       ByVal x2 As System.Integer _
    ) As System.Integer
    public static System.int gcd( 
       System.int x1,
       System.int x2
    )

    Parameters

    x1
    x2
    See Also