Prelude does not provide a Bounded Double instance. Is this because Double does not have a min/max argument in Haskell (that Bounded requires) or is the reason different?
Assuming that maxBound > x should hold true for any other x :: Bounded a => a, what should the value of maxBound :: Double be?
> let nan = 0/0; infinity = 10.0**10000; in (nan > infinity, infinity > nan)
(False,False)
The numbers represented by Double are bounded, but the values in the type Double are not.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With