I have the following output - and I am surprised. Any help why "my Doubles" seem to be so low?
Prelude GHC.Float> floatRange (0.5e1000::Double)
(-1021,1024)
Prelude GHC.Float> show (0.5e1000::Double)
"Infinity"
The exponent 1000 seems to be quite far away from the 1024 limit (as I expected IEEE to contain this ::Double).
I would appreciate your help.
Most likely, floatRange is returning the range of the binary (base-2) exponent. You are setting a base-10 exponent of 1024 here, so you're asking the base-2 exponent to reach 3402 or so.
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