Double -> non-double function :)

Hal Daume III hdaume@ISI.EDU
Wed, 3 Apr 2002 11:15:04 -0800 (PST)


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).

 - Hal

--
Hal Daume III

 "Computer science is no more about computers    | hdaume@isi.edu
  than astronomy is about telescopes." -Dijkstra | www.isi.edu/~hdaume