-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 According to Bruno Haible on 4/11/2008 4:43 AM: | 1) for float to decimal conversion, think of snprintf (NULL, "%Le", x) | or snprintf (NULL, "%Lf", x) | | At least in the first case, I don't see how the number of output bytes could | be determined without doing the actual conversion.
True, but in the first case, the maximum number of significant digits is known in advance, so you can still use a fixed-size stack-allocated buffer to do the work. - -- Don't work too hard, make some time for fun as well! Eric Blake [EMAIL PROTECTED] -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (Cygwin) Comment: Public key at home.comcast.net/~ericblake/eblake.gpg Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkf/U7oACgkQ84KuGfSFAYCL4gCg19NInXfh4k6iXzQhoWOTbeRH KkYAnAsnr7PAz0tXPB+9Bze1TZGBOFvb =xMm0 -----END PGP SIGNATURE-----