Justtechjobs.com Find a programming school near you






Online Campus Both


php-general | 2001072

RE: [PHP] formating numbers to two decimal points - money - best ways From: Adrian Ciutureanu (adrian.ciutureanu <email protected>)
Date: 07/18/01

<?
        $c = 12.3456;
        echo number_format($c, 2);
?>

http://php.net/number_format

> -----Original Message-----
> From: Tim Olsen [mailto:mrtimo <email protected>]
> Sent: 18 iulie 2001 10:52
> To: php-general <email protected>
> Subject: [PHP] formating numbers to two decimal points - money - best
> ways
>
>
> 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 General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-general-unsubscribe <email protected>
For additional commands, e-mail: php-general-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>