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, Sep 17, 2021 (04:05:09 PM)

On This Page

FEEDBACK