Skip to content
Math & Text gcd

$gcd — Greatest common divisor of two or more whole numbers.

Greatest common divisor of two or more whole numbers.

Syntax

$gcd[a;b;...]

Parameters

  • a, b, … (integer, required) — At least two whole numbers.

Return Value

  • string.

Usage

$gcd[12;18] → "6"

Example

$sendMessage[$gcd[12;18]]

Try it

Paste an example into the playground to preview its message (functions that act on Discord are not run), or build the same thing with blocks.