[Haskell-cafe] Data.Number.BigFloat/Fixed

Ivan Lazar Miljenovic ivan.miljenovic at gmail.com
Sun Mar 21 17:31:32 EDT 2010


I'm sorry, but is there a question in there?

H. <h._h._h._ at hotmail.com> writes:
> (7e-3 :: BigFloat Prec50) < (6e-4 :: BigFloat Prec50)
> False
>
> (7e-3 :: BigFloat Prec50) < (8e-4 :: BigFloat Prec50)
> True
>
> where in the sourecode is written:
> data BigFloat e = BF (Fixed e) Integer deriving (Eq, Ord)
>
> and
> import Data.Ratio
> newtype Fixed e = F Rational deriving (Eq, Ord, Enum, Real, RealFrac)

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


More information about the Haskell-Cafe mailing list