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
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
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
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?
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
5 matches
Mail list logo