<wrong>$_ = sprintf('%.f',sprintf('%1.2f', 2e-7))</wrong>
How about that?
UPDATE: sorry, i didn't test this. The '0+' approach is much better.
--In reply to Re: sprintf on floating point
by fruiture
in thread sprintf on floating point
by Jaap
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |