rational numbers

Clifford J. Nelson cnelson9@gte.net
Fri, 03 Dec 1999 16:59:09 -0800


Are there any Clean examples in books or on the web that implement the exact rational number data type
with overloading of all appropriate arithmetic operations and conversion to and from other number
types, all in Clean without anything relating to the platform it will run on? It goes without saying
that it is too difficult to predict the number of digits that the numerator and denominator need to
have, so, available memory should be the only limit to their size.

  Cliff Nelson