[PHP] Percentages

2001-06-24 Thread Tim Thorburn
Hi, Working on a site that needs some billing information. Once upon a time done in ASP where we had the option to use the FormatPercent command - is there an equivalent command within PHP? Using PHP 3.0.16 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL

Re: [PHP] Percentages

2001-06-24 Thread Rasmus Lerdorf
Working on a site that needs some billing information. Once upon a time done in ASP where we had the option to use the FormatPercent command - is there an equivalent command within PHP? Couldn't you just use number_format() and stick a % sign in there yourself? -Rasmus -- PHP General

Re: [PHP] Percentages

2001-06-24 Thread David Robley
On Mon, 25 Jun 2001 12:04, Tim Thorburn wrote: Hi, Working on a site that needs some billing information. Once upon a time done in ASP where we had the option to use the FormatPercent command - is there an equivalent command within PHP? Using PHP 3.0.16 Stab in the dark as I dunno

Re: [PHP] Percentages

2001-06-24 Thread John Meyer
On Sun, 24 Jun 2001, David Robley wrote: On Mon, 25 Jun 2001 12:04, Tim Thorburn wrote: Hi, Working on a site that needs some billing information. Once upon a time done in ASP where we had the option to use the FormatPercent command - is there an equivalent command within PHP?

RE: [PHP] Percentages

2001-06-24 Thread Jason Lustig
How 'bout using this hack: function formatPercent ($decimal, $round = 2) { return round($decimal*100, $round).'%'; } --Jason -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the