in reply to Re: How to control no. of digits on exponent
in thread How to control no. of digits on exponent

I suspect that those details of the formatting of a printf string come from the underlying C library's implementation of printf, rather than from perl.

The printf layout on cygwin matches what I am getting on my linux box, which makes sense, as both use GCC libraries underneath. I would have thought Strawbery Perl would be the same.

As ikegami said, you could do string processing on the raw output of sprintf, to get the number of digits you want. The problem of course is that the raw number may need all those digits of exponent because it is very large or small.

  • Comment on Re^2: How to control no. of digits on exponent