ComponentOne MultiSelect for WinForms
C1.Framework.Mathematics Namespace / Math Class / CalculateGreatestCommonDivisor Method
An int indicate the one number.
An int indicate another number.

In This Topic
    CalculateGreatestCommonDivisor Method
    In This Topic
    Calculate the Greatest Common Divisor of oneNumber and anotherNumber.
    Syntax
    'Declaration
     
    
    Public Shared Function CalculateGreatestCommonDivisor( _
       ByVal oneNumber As Integer, _
       ByVal anotherNumber As Integer _
    ) As Integer
    public static int CalculateGreatestCommonDivisor( 
       int oneNumber,
       int anotherNumber
    )

    Parameters

    oneNumber
    An int indicate the one number.
    anotherNumber
    An int indicate another number.

    Return Value

    An int indicate the Greatest Common Divisor.
    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also