Gcd
Table of Contents
| evaluateGCD() | Recursively determine GCD. | float|int |
|---|---|---|
| evaluate() | GCD. | float|int|string |
Methods
evaluateGCD()
Recursively determine GCD.
private
static evaluateGCD(
$a :
float|int
, $b :
float|int
)
: float|int
Returns the greatest common divisor of a series of numbers. The greatest common divisor is the largest integer that divides both number1 and number2 without a remainder.
Excel Function: GCD(number1[,number2[, ...]])
Parameters
- $a : float|int
- $b : float|int
Return values
float|intevaluate()
GCD.
public
static evaluate(
...$args :
mixed
)
: float|int|string
Returns the greatest common divisor of a series of numbers. The greatest common divisor is the largest integer that divides both number1 and number2 without a remainder.
Excel Function: GCD(number1[,number2[, ...]])
Parameters
- $args : mixed
Data values
Return values
float|int|string —Greatest Common Divisor, or a string containing an error