Thanks, I had come up with the same solution - dividing by 100 and then using sprintf
--- In php-list@yahoogroups.com, "Gordon Stewart" <[EMAIL PROTECTED]> wrote: > > On Mon, Mar 24, 2008 at 4:53 AM, David <[EMAIL PROTECTED]> wrote: > > Hi > > > > I am trying to insert a decimal point two places from the right end of > > a string so 100 would become 1.00 I have tried using number_format and > > printf but I get 100.00 > > > > Any suggestions? > > If your starting number is ALWAYS a whole number, you can divide by 100.. > > Or would you sometimes have > > 67.7 and want to get 6.77 (for example)... > > > -- > G > NZ community groups - [EMAIL PROTECTED] > Freecycle Auckland :- > http://groups.yahoo.com/group/AucklandFreecycle/ >