Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
I do want variable-length output (so %f is out), but I don't ever want exponential notation. I have heard that "%_f" does this in C. Why not perl???? Dearest Monk, enlighten me please!DB<19> printf("%g",3.00); 3 DB<20> printf("%g",3.001); 3.001
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: printing floats nicely
by ww (Archbishop) on Sep 22, 2010 at 02:41 UTC | |
|
Re: printing floats nicely
by ikegami (Patriarch) on Sep 21, 2010 at 22:20 UTC | |
|
Re: printing floats nicely
by Anonymous Monk on Sep 21, 2010 at 22:07 UTC |