2.0.0 • Published 2 years ago

@knutkirkhorn/gcd v2.0.0

Weekly downloads
1
License
MIT
Repository
github
Last release
2 years ago

gcd

Get the greatest common devisor of two numbers

Installation

npm install @knutkirkhorn/gcd

Usage

import gcd from '@knutkirkhorn/gcd';

console.log(gcd(28, 2));
// => 2

API

gcd(number1, number2)

Returns the gcd of number1 and number2. The gcd is computed using the Euclidean algorithm.

Related

2.0.0

2 years ago

1.1.1

4 years ago

1.1.0

4 years ago

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago