home *** CD-ROM | disk | FTP | other *** search
- ' +----------------------------------------------------------------------+
- ' | |
- ' | BASWIZ Copyright (c) 1990-1993 Thomas G. Hanlin III |
- ' | |
- ' | The BASIC Wizard's Library |
- ' | |
- ' +----------------------------------------------------------------------+
-
- DEFLNG A-Z
-
- FUNCTION GCDL& (Nr1 AS LONG, Nr2 AS LONG)
- N1 = Nr1
- N2 = Nr2
- DO
- Remainder = N1 MOD N2
- N1 = N2
- N2 = Remainder
- LOOP UNTIL Remainder = 0&
- GCDL& = N1
- END FUNCTION
-