-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Shane Harrelson wrote:
> I'm looking at how this can be improved.

It seems that everyone else is converging on using David Gay's dtoa.c whose
algorithm is based on the paper "How to Print Floating-Point Numbers
Accurately" by  Guy L. Steele, Jr. and Jon L. White [Proc. ACM SIGPLAN '90,
pp. 92-101].   David's paper is at
http://cm.bell-labs.com/cm/cs/doc/90/4-10.ps.gz

Python has just switched to this and gcc uses it internally too now.  The
latest version is at
http://gcc.gnu.org/viewcvs/trunk/libjava/classpath/native/fdlibm/dtoa.c?view=markup

(Be wary of older versions as they get miscompiled due to aliasing issues.)

Roger
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkt5lcUACgkQmOOfHg372QS2AQCfVHu8c82fz9h51SuYMnQIEpJV
txcAoIhNgdXI6Qwsw2XaDrj1g2wmX0se
=Zi+T
-----END PGP SIGNATURE-----
_______________________________________________
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to