Skip to content

dos_gcd

Dale Fugier edited this page Nov 1, 2023 · 1 revision

Computes the greatest common divisor of two integers.

Syntax

(dos_gcd first second)

Parameters

first

The first number.

second

The second number.

Returns

The greatest common divisor, if successful.

nil on error.

Example

Command: (dos_gcd 81 57)
3
Command: (dos_gcd 12 20)
4
Clone this wiki locally