Double -> non-double function :)

Dylan Thurston
Thu, 4 Apr 2002 11:42:15 -0500

Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

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

Content-Type: application/pgp-signature
Content-Disposition: inline

Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see