Skip to main content

lcm

Function lcm 

Source
pub fn lcm(a: i64, b: i64) -> Result<i64, Error>
Expand description

Least common multiple.

Returns Error::InvalidInput if both inputs are zero or if the result overflows an i64.