JCL Help:LCM

From Project JEDI Wiki
Jump to navigationJump to search


Summary

Returns the Least Common Multiple of two integers.


Pascal

 function LCM(const X: Cardinal; const Y: Cardinal): Cardinal;


Parameters

Parameters Description
const X: Cardinal First of the two values.
const Y: Cardinal Second of the two values.


Return Value

The least common multiple of X and Y.


Description

The LCM function returns the Least Common Multiple (LCM) of the two supplied integers.


See Also

GCD IsRelativePrime


About

Unit

JclMath


Donator

ESB Consultancy


Contribute to this help topic

This documentation wiki is based on the collaborative effort of Project JEDI users. Your edits are welcome in order to improve documentation quality: edit this page