Double -> non-double function :)

Dylan Thurston dpt@math.harvard.edu
Thu, 4 Apr 2002 11:42:15 -0500


--KsGdsel6WgEHnImy
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

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

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE8rIJnVeybfhaa3tcRAvGKAKCRNq2TYdRfgRlmzIdCLo74eEAeLQCghLUh
9VHqQc/o8aWYLFYPEs4bHtA=
=ZVVc
-----END PGP SIGNATURE-----

--KsGdsel6WgEHnImy--