Skip to content

dos_lcm

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

Computes the least common multiple of two integers. The least common multiple is the smallest positive integer that is a multiple of both integers.

Syntax

(dos_lcm number1 number2)

Parameters

number1

The first number.

number2

The second number.

Returns

The least common multiple, if successful.

nil on error.

Example

Command: (dos_lcm 5 2)
10
Command: (dos_lcm 24 36)
72
Clone this wiki locally