MCPcopy Create free account
hub / github.com/CoderOpen/waimai / max_gys

Function max_gys

bootstrap/function.php:109–116  ·  view source on GitHub ↗

计算最大公约数

($a, $b)

Source from the content-addressed store, hash-verified

107
108//计算最大公约数
109function max_gys($a, $b)
110{
111 if ($b == 0) {
112 return $a;
113 }
114 return max_gys($b, $a % $b);
115
116}
117
118/**
119 * 加密 和 解密 算法

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected