Description Usage Arguments Value Examples
Divides both integers by their greatest common divisor, switching their signs if the second integer is negative. If either integer is 0, returns without modification.
1 | makecoprime(a, b)
|
a |
An integer. |
b |
An integer. |
The greatest (positive) common divisor of two integers; if one of them is 0, returns the absolute value of the other number.
1 2 3 4 5 6 7 | makecoprime(1, 2)
makecoprime(1, -2)
makecoprime(12, -18)
makecoprime(-12, 18)
makecoprime(15, 0)
makecoprime(0, -15)
makecoprime(0, 0)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.