Kurth Bemis wrote:
> i'm looking for a php function to add 2 decimal place sto a number. if the
> number already have one decimal place then one more zero should be added to
> make it two decimal places....anyone know of a quick way to do this?
printf("%.2f",$var);
--
PHP Developer, home: http://www.moijk.net | work: http://www.coretrek.com
parse_str: Parses the string into variables |
http://www.php.net/manual/en/function.parse-str.php
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]