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