[Haskell-cafe] Re: [Haskell] How to get the binary respentation of the Int/Double.

2008-10-29 Thread Ryan Ingram
Actually, this is a good question, at least as relating to floating point values. Is there a primitive to view the machine representation of floats? I'm thinking of functions like: reinterpretFloatAsWord :: Float - Word32 reinterpretWordAsFloat :: Word32 - Float reinterpretDoubleAsWord ::

[Haskell-cafe] Re: [Haskell] How to get the binary respentation of?the Int/Double.

2008-10-29 Thread Chung-chieh Shan
Ryan Ingram [EMAIL PROTECTED] wrote in article [EMAIL PROTECTED] in gmane.comp.lang.haskell.cafe: Actually, this is a good question, at least as relating to floating point values. Is there a primitive to view the machine representation of floats? Not a primitive, but it can be defined:

Re: [Haskell-cafe] Re: [Haskell] How to get the binary respentation of the Int/Double.

2008-10-29 Thread Bit Connor
On Wed, Oct 29, 2008 at 7:58 PM, Ryan Ingram [EMAIL PROTECTED] wrote: Actually, this is a good question, at least as relating to floating point values. Is there a primitive to view the machine representation of floats? This isn't the first time this issue has come up on this mailing list. I