in reply to Re: (Golf) Formatting Integer To Money
in thread (Golf) Formatting NumberTo Money
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}$_}
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: (Golf) Formatting Integer To Money
by thelenm (Vicar) on Aug 29, 2002 at 18:45 UTC | |
by larryk (Friar) on Aug 29, 2002 at 20:55 UTC |