Computes the least common multiple (lcm).
a
b
0
NaN
integer
least common multiple
var v = lcm( 21, 6 ); // returns 42
var v = lcm( 3.14, 6 ); // returns NaN
var v = lcm( NaN, 6 ); // returns NaN
Computes the least common multiple (lcm).
Notes
a
orb
is0
, the function returns0
.a
andb
must have integer values; otherwise, the function returnsNaN
.