Utils.greatestCommonDivisor

Calculates the greatest common divisor of a and b.

struct Utils
static
int
greatestCommonDivisor
(
int a
,
int b
)

Parameters

a int

First value as gint

b int

Second value as gint

Return Value

Type: int

Greatest common divisor of a and b