
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.

I'm sorry, but is there a question in there?
H.
(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@gmail.com IvanMiljenovic.wordpress.com

On Mar 21, 2010, at 17:31 , Ivan Lazar Miljenovic wrote:
I'm sorry, but is there a question in there? H.
writes: (7e-3 :: BigFloat Prec50) < (6e-4 :: BigFloat Prec50) False
0.007 < 0.0006? -- brandon s. allbery [solaris,freebsd,perl,pugs,haskell] allbery@kf8nh.com system administrator [openafs,heimdal,too many hats] allbery@ece.cmu.edu electrical and computer engineering, carnegie mellon university KF8NH

On 22 March 2010 08:33, Brandon S. Allbery KF8NH
On Mar 21, 2010, at 17:31 , Ivan Lazar Miljenovic wrote:
I'm sorry, but is there a question in there? H.
writes: (7e-3 :: BigFloat Prec50) < (6e-4 :: BigFloat Prec50) False
0.007 < 0.0006?
Oh, wait; that returns False which is correct, but 0.007 < 0.0008 returns True which is incorrect. Which just goes to show I shouldn't skim emails that early in the morning... -- Ivan Lazar Miljenovic Ivan.Miljenovic@gmail.com IvanMiljenovic.wordpress.com

Ivan Lazar Miljenovic
I'm sorry, but is there a question in there?
H.
writes: (7e-3 :: BigFloat Prec50) < (6e-4 :: BigFloat Prec50) False
(7e-3 :: BigFloat Prec50) < (8e-4 :: BigFloat Prec50) True
7e-3 < 8e-4 The result should be False, but it's True. Basically I don't know where to report this bug.

On Sun, Mar 21, 2010 at 4:49 PM, H.
Ivan Lazar Miljenovic
writes: I'm sorry, but is there a question in there?
H.
writes: (7e-3 :: BigFloat Prec50) < (6e-4 :: BigFloat Prec50) False
(7e-3 :: BigFloat Prec50) < (8e-4 :: BigFloat Prec50) True
7e-3 < 8e-4 The result should be False, but it's True.
Basically I don't know where to report this bug.
Sending to the maintainer of the package, as listed on hackage. Antoine

Antoine Latter
On Sun, Mar 21, 2010 at 4:49 PM, H.
wrote: 7e-3 < 8e-4 The result should be False, but it's True.
Basically I don't know where to report this bug.
Sending to the maintainer of the package, as listed on hackage.
Antoine
This was my first idea as well, but there's no email: http://hackage.haskell.org/package/numbers
participants (5)
-
Antoine Latter
-
Brandon S. Allbery KF8NH
-
H.
-
Ivan Lazar Miljenovic
-
Ivan Miljenovic