printf formatting issue

The perl test suite has picked up an error in the printf ‘%e’
formatting. Specifically

printf("%e\n", 0. );

produces 0.000000e+0

whereas the ANSI standard requires at least two digits in the
exponent: 0.000000e+00.

This is a nit, but it impacts the ability to predict what an
output format will produce, and hence what your output will
look like. It also causes at least two of the perl tests to
fail under QNX6, which is a shame.

Norton Allen <allen@huarp.harvard.edu> wrote:

Answered in the devtools newsgroup. Please don’t cross post
your issues.

Thanks.

Marcin

The perl test suite has picked up an error in the printf ‘%e’
formatting. Specifically

printf("%e\n", 0. );

produces 0.000000e+0

whereas the ANSI standard requires at least two digits in the
exponent: 0.000000e+00.

This is a nit, but it impacts the ability to predict what an
output format will produce, and hence what your output will
look like. It also causes at least two of the perl tests to
fail under QNX6, which is a shame.