We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Find the greatest common divisor of numbers.
Similar: gcd, lcm.
function gcd(...xs) // xs: a list of numbers
const xmath = require('extra-math'); xmath.gcd(6, 15); // → 3 xmath.gcd(6, 15, 21); // → 3 xmath.gcd(6, 15, 20); // → 1
There was an error while loading. Please reload this page.