home | help
xt_lcm(3)		    Library Functions Manual		       xt_lcm(3)

NAME
     xt_lcm() - Least common multiple

LIBRARY
     #include <xtend/math.h>
     -lxtend

SYNOPSIS
     unsigned long   xt_lcm(unsigned long a,unsigned long b)

ARGUMENTS
     a, b: Numbers for which to find LCM

DESCRIPTION
     Computes  the  least  common multiple of two natural numbers a and b.  Note
     that this function may fail for relatively small values, as their	LCM  may
     be beyond the range of a 32-bit integer.

RETURN VALUES
     The least common multiple of a and b.

SEE ALSO
     xt_gcd(3)

								       xt_lcm(3)

home | help