FN-GCD-001: GCD and LCM accept 2^53 itself, not only values below it
Documentation differs from behaviour · measured · recorded 2026-11-04
GCD accepts an operand equal to 2^53, and LCM accepts an operand or a result equal to 2^53. Only values above 2^53 give #NUM!.
Documentation: If a parameter to GCD is >=2^53, GCD returns the #NUM! error value. If LCM(a,b) >=2^53, LCM returns the #NUM! error value. Source documentation · Source documentation
| Call and input route | Inputs | Excel | Correct value | Recorded in |
|---|---|---|---|---|
GCD(9007199254740992, 1)cell-value2 | number1: 90071992547409920x4340000000000000number2: 10x3ff0000000000000 | 10x3ff0000000000000 | — | Excel 16.0 build 20430, Windows 64-bit, CPU not recorded in this capture |
LCM(9007199254740992, 2)cell-value2 | number1: 90071992547409920x4340000000000000number2: 20x4000000000000000 | 90071992547409920x4340000000000000 | — | Excel 16.0 build 20430, Windows 64-bit, CPU not recorded in this capture |
GCD(9007199254740994, 0)cell-value2 | number1: 90071992547409940x4340000000000001number2: 00x0000000000000000 | #NUM! | — | Excel 16.0 build 20430, Windows 64-bit, CPU not recorded in this capture |
Basis: All recorded rows match after the boundary change: GCD 7,966 of 7,966 and LCM 7,967 of 7,967.
Evidence and capture sources
- DnaCalc · apps/dna-onecalc/tests/acceptance.rs 9c23dde1dfd6d93e742d763a4bad3eaec229b29c · recorded_gcd_lcm_admit_the_exact_operand_boundary recorded readings pinned
- CalcFunc-Evidence · runs/w111-integer-publication-20260929/answers/answers-gcd.json.gz 4d5320dfdc385354469b4d506153357bb932ab08 · w111boundary-GCD-00190
- CalcFunc-Evidence · runs/w111-integer-publication-20260929/answers/answers-lcm.json.gz 4d5320dfdc385354469b4d506153357bb932ab08 · w111boundary-LCM-00194
- CalcFunc-Evidence · runs/w111-integer-publication-20260929/answers/answers-gcd.json.gz 4d5320dfdc385354469b4d506153357bb932ab08 · w111boundary-GCD-00217