"be consistent" | |
PerlMonks |
Re: Deleting trailing 0's after using sprintfby jweed (Chaplain) |
on Mar 19, 2004 at 06:39 UTC ( [id://337906]=note: print w/replies, xml ) | Need Help?? |
This is actually an exercise in Jeff Friedl's Mastering Regular Expressions. His final reccomendation is to skip the sprintf alltogether and just use Which always keeps 2 digits, i.e. 2.500 => 2.50. If you don't wan that to happen, use
In Section
Seekers of Perl Wisdom
|
|