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: lcm
Type: Integral a => a -> a -> a
Description: lowest common multiple
Related:
Keywords: multiplication
MATHWORLD Least Common Multiple

Example 1

Input: lcm 4 8

Output: 8

Example 2

Input: lcm 4 9

Output: 36