Computes the greatest common factor of two integers.

Namespace:  Meta.Numerics.Functions
Assembly:  Meta.Numerics (in Meta.Numerics.dll) Version: 1.4.0.0 (1.4.0.0)

Syntax

         
 C#  Visual Basic  Visual C++ 
public static long GCF(
	long u,
	long v
)
Public Shared Function GCF ( _
	u As Long, _
	v As Long _
) As Long
public:
static long long GCF(
	long long u, 
	long long v
)

Parameters

u
Int64
The first integer.
v
Int64
The second integer.

Return Value

The greatest common factor of u and v.

See Also