Update: 48 characters:sub a{$_=sprintf"%.2f",pop;while(s/\B\d{3}\b/,$&/){}$_}
--Davesub a{$_=sprintf"%.2f",pop;{s/\B\d{3}\b/,$&/&&redo}$_}
In reply to Re: Re: (Golf) Formatting Integer To Money
by dpuu
in thread (Golf) Formatting NumberTo Money
by enoch
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |