Re: [PHP] Formatting of a number

2005-11-16 Thread David Grant
Hi Scott, How do you distinguish between a value filled with zeroes and a value with 0 in both decimal positions? For example, why is 3145900 expressed as 3,145.90, and not 31,459.00? Cheers, David Grant Scott Parks wrote: > Hi- > > I have a number that I am trying to format. It is data comi

[PHP] Formatting of a number

2005-11-16 Thread Scott Parks
Hi- I have a number that I am trying to format. It is data coming from a main frame and has 8 characters assigned to it (6 and two decimal places). I have zerofill set up in MySQL on this field and am working on the best way to display the number. Currently I have this: $sOutput = numb