greatest-common-divisor
numeric →
greatest-common-divisor(
value: integer
) → numeric
Returns the greatest common divisor (GCD) of the argument integer and the parameter integer. Returns null if the argument is not an integer.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
value | integer | Yes | The integer used to compute the greatest common divisor with the argument value. |
Examples
10 | greatest-common-divisor(5) → 5
Kind: Function
Scope: numeric/arithmetic
Aliases: numeric-to-greatest-common-divisor