Document Library for WPF | ComponentOne
C1.WPF.Document.4.6.2 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 Integer, _
       ByVal x2 As Integer _
    ) As Integer
    public static int gcd( 
       int x1,
       int x2
    )

    Parameters

    x1
    x2
    See Also