Retro Rocket OS
Loading...
Searching...
No Matches
BIGGCD$ Function
BIGGCD$(string-expression, string-expression)

Calculates the greatest common divisor (GCD) of two arbitrary precision integers provided as decimal strings, returning the result as a string.


Examples

PRINT BIGGCD$("48", "18")

Produces "6".

PRINT BIGGCD$("12345678901234567890", "9876543210")

Produces "90".

PRINT BIGGCD$("-42", "56")

Produces "14".


Notes

  • Inputs must be valid base-10 integer strings.
  • Negative values are treated by magnitude (the result is always non-negative).
  • If both inputs are zero, the result is "0".
  • Result is returned as a decimal string.

See also: BIGADD$ · BIGSUB$ · BIGMUL$ · BIGDIV$ · BIGMOD$ · BIGCMP