Learn R Programming

gmp (version 0.1)

gcd: Great common divisor, Least common multiple

Description

Great common divisor and least common multiple. In french: pgcd and ppcm.

Usage

gcd(a, b)
lcm(a, b)

Arguments

a
Integer or string from an integer
b
Integer or string from an integer

Value

  • A string of the integer value.

References

Gnu MP Library see http://swox.com/gmp

See Also

gcdex

Examples

Run this code
gcd(210,342)
lcm(210,342)

Run the code above in your browser using DataLab