Re: Number formatting

2004-08-04 Thread Randy W. Sims
On 8/4/2004 10:02 PM, [EMAIL PROTECTED] wrote: Hi all, I am doing conversions from square metres to square feet for example. I have a regex that removes any commas or spaces in a number. I then do the conversion return an integer but then want to display the number with the commas or spaces put bac

Re: Number formatting

2004-08-04 Thread Chris Devers
On Thu, 5 Aug 2004 [EMAIL PROTECTED] wrote: but then want to display the number with the commas or spaces put back in to make it easier to read. What do you suggest? Two minutes of Googling found dozens of suggestions. This may be the best one: How can I output my numbers with commas added? T

Number formatting

2004-08-04 Thread Colin . Johnstone
Hi all, I am doing conversions from square metres to square feet for example. I have a regex that removes any commas or spaces in a number. I then do the conversion return an integer but then want to display the number with the commas or spaces put back in to make it easier to read. What do

Re: Number Formatting

2001-07-02 Thread Brett W. McCoy
On Mon, 2 Jul 2001, Ralph Alberti wrote: > Can somebody provide me with an example of how to format a number scalar > into dollars? > > Do I need to use a module for this or can Perl handle this alone? > > I didn't see any functions like format(); perldoc -f printf -- Brett

Number Formatting

2001-07-02 Thread Ralph Alberti
Can somebody provide me with an example of how to format a number scalar into dollars? Do I need to use a module for this or can Perl handle this alone? I didn't see any functions like format(); Thanks, Ralph