[Haskell-cafe] Integer = infinite precision integer? How?
lemming at henning-thielemann.de
Fri Jul 4 03:18:23 EDT 2008
On Thu, 3 Jul 2008, leledumbo wrote:
> Does anyone have an explanation how Haskell implement this? Or a pointer to a
> article describing this?
Just a nitpick: Integers can have an arbitrary but only a finite number of
digits. In contrast to that reals have infinitely many digits after the
decimal point. There are Cantor's proofs that the set of natural numbers
and the set of rational numbers have the same cardinality, whereas the set
of reals has larger cardinality. Students often fail to understand that,
if they are not aware that integers can only have finitely many digits.
More information about the Haskell-Cafe