On Wed, Apr 03, 2002 at 11:15:04AM -0800, Hal Daume III wrote: > I'm looking for a (not-necessarily Haskell 98 compliant, as long as it > works in GHC) way to get at the internal representation of Doubles. I can > use decodeDouble# to get at it, but I need something equivalent to > encodeDouble# to go the other way, and I cannot find such a function > anywhere. Any suggestions are welcome (yes, I know I can use show and > read, but I'm looking for something which will keep the # of bytes down).
What's wrong with {de,en}codeFloat? Not fast enough? Or is this not what you mean by the internal representation? --Dylan Thurston
msg10624/pgp00000.pgp
Description: PGP signature