On Wed, 18 Jul 2001 17:21, Tim Olsen wrote:
> Anyone have functions for formatting numbers being multiplied by
> variables and whatnot to two decimal points - rounded up? As for
> displaying total cost, etc?

PHP has :-) have a look at the mathematical functions.

http://www.php.net/manual/en/ref.math.php

Round is probably the one you want.

-- 
David Robley      Techno-JoaT, Web Maintainer, Mail List Admin, etc
CENTRE FOR INJURY STUDIES      Flinders University, SOUTH AUSTRALIA  

   If a program is useless, it must be documented.

-- 
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]

Reply via email to