[Haskell-cafe] Why is toRational a method of Real?

Omari Norman omari at smileystation.com
Wed Aug 4 14:30:10 EDT 2010


Why is toRational a method of Real? I thought that real numbers need not
be rational, such as the square root of two. Wouldn't it make more sense
to have some sort of Rational typeclass with this method? Thanks.
--Omari



More information about the Haskell-Cafe mailing list