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

Ivan Lazar Miljenovic ivan.miljenovic at gmail.com
Thu Aug 5 05:50:32 EDT 2010


Henning Thielemann <lemming at henning-thielemann.de> writes:

> On Wed, 4 Aug 2010, John Meacham wrote:
>
>> and the rounding functions discard information too by trying to
>> convert a floating point value to an integral one...
>
> What else shall a rounding function return if not integers?

Some people may wish to a certain number of decimal places instead.

-- 
Ivan Lazar Miljenovic
Ivan.Miljenovic at gmail.com
IvanMiljenovic.wordpress.com


More information about the Haskell-Cafe mailing list