suve

awful: function: lcm

Declaration

int :lcm ( int $A , int $B )

Summary

Returns the least common multiple of A and B.

Example

# :lcm example
:writeln :lcm i256 i64   # Should be 256
:writeln :lcm  i11 i29   # Should be 319
:writeln :lcm i270 i33   # Should be 2970

wikipage modified on 2014/0601/2317