Skip to main content

lcm

Function lcm 

pub const fn lcm(left: i128, right: i128) -> Result<u128, IntegerError>
Expand description

Computes the non-negative least common multiple of two signed integers.

ยงErrors

Returns IntegerError::ArithmeticOverflow when the least common multiple does not fit in u128.