in reply to Thousands separator - this is getting annoying
and it gave me the following:$mynum=2000.99; $totalline = sprintf("%11.2f\n", $mynum); print $totalline;
If commas are giving you a problem, then you could quickly strip them out:2000.99
This is probably not an ideal solution for you but I hope it does help in some way.s/,//g;
To put the commas back, please refer to the How do I add commas to a number? node.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Thousands separator - this is getting annoying
by turnstep (Parson) on Jan 17, 2001 at 03:40 UTC | |
by btrott (Parson) on Jan 17, 2001 at 03:50 UTC | |
by tye (Sage) on Jan 17, 2001 at 03:58 UTC | |
by mrmick (Curate) on Jan 17, 2001 at 18:46 UTC |