npm.io
0.0.3 • Published 12 years ago

lcm

Licence
MIT
Version
0.0.3
Deps
1
Vulns
0
Weekly
0
Stars
3

lcm

Compute the least common multiple using Euclid's algorithm.

Build Status

browser support

example

var lcm = require('lcm');
var n = lcm(21, 6);
console.log(n);

42

methods

var lcm = require('lcm')

lcm(a, b)

Return the least common multiple of the integers a and b using Euclid's algorithm.

install

With npm do:

npm install lcm

license

MIT

Keywords