gcd

Function gcd 

Source
pub fn gcd(args: &[Value]) -> Result<Value, RuntimeError>
Expand description

计算两个整数的最大公约数(Greatest Common Divisor)

参数:

  • args[0]: 第一个整数
  • args[1]: 第二个整数

返回:

  • 两个数的最大公约数