Skip to content

nickleefly/node-lcm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

compute the least common multiple using Euclidean algorithm

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published