Utils.greatestCommonDivisor

Calculates the greatest common divisor of a and b.

class 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

Meta