A divisor of an integer is a nonzero integer that divides it exactly. If a = dk for integers d and k, then d divides a. The GCD focuses on positive divisors and selects the greatest one shared by the supplied integers.
Thus gcd(48,18) = 6, while gcd(17,13) = 1. Numbers with GCD 1 are called relatively prime or coprime; they do not have to be prime individually. For a nonzero integer a, gcd(a,0) = |a|.
This works because every positive divisor of a also divides zero. The pair 0 and 0 is different: in a common mathematical definition, gcd(0,0) is undefined because every positive integer divides both values and there is no greatest one. Some software defines the result as 0 for convenience.
The calculator’s engine policy has not been verified, so its treatment of this case should not be presumed. GCD has no physical unit by itself. It can nevertheless describe a shared unit when all quantities are exact integer multiples of the same base unit.
Lengths of 100 feet and 44 feet, for example, can be divided into whole-foot sections whose greatest common size is 4 feet. Quantities with different dimensions, such as metres and seconds, should not be combined. Decimal quantities must first be converted exactly to a common integral scale when that is meaningful: 1.5 metres and 2.0 metres become 150 centimetres and 200 centimetres. Their GCD is 50 centimetres.
Rounding measurements merely to create integers can introduce a misleading factor.