2.0.0 • Published 1 year ago

@knutkirkhorn/gcd v2.0.0

Weekly downloads
1
License
MIT
Repository
github
Last release
1 year 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

1 year ago

1.1.1

2 years ago

1.1.0

3 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago