ZVON > References > Haskell reference
| Indexes | Syntax | >> Prelude << | Ratio | Complex | Numeric | Ix | Array | List | Maybe | Char | Monad | IO | Directory | System | Time | Locale | CPUTime | Random

Module: Prelude
Function: gcd
Type: Integral a => a -> a -> a
Description: greatest common divisor
Related:
Keywords: division
MATHWORLD Greatest Common Divisor

Example 1

Input: gcd 12 8

Output: 4