[Haskell-cafe] Data.Number.BigFloat/Fixed
H.
h._h._h._ at hotmail.com
Sun Mar 21 17:25:08 EDT 2010
Hello,
With ghc-6.10.4 the following results are produced with numbers 2009.8.9:
(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)
H.
More information about the Haskell-Cafe
mailing list