gcd() Function

Function

gcd( number )

Returns the greatest common denominator of the specified non-negative number(s), which is the largest number that divides all the given numbers without a remainder.

Parameters

Keyword Type Description

number

Decimal Array

The list of non-negative numbers.

Returns

Decimal

Examples

You can experiment with this function in the test box below.

Test Input

gcd(4,12,36) returns 4

Open in Github Built: Fri, Dec 03, 2021 (02:38:50 PM)

On This Page

FEEDBACK