php-general | 2001072
Date: 07/18/01
- Next message: elias: "[PHP] How can i pop my mails?"
- Previous message: Constantine Koulis: "[PHP] php-qmail-sendmail...cjk"
- Maybe in reply to: Tim Olsen: "[PHP] formating numbers to two decimal points - money - best ways"
- Next in thread: Richard Lynch: "[PHP] Re: formating numbers to two decimal points - money - best ways"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
<?
$c = 12.3456;
echo number_format($c, 2);
?>
> -----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>
- Next message: elias: "[PHP] How can i pop my mails?"
- Previous message: Constantine Koulis: "[PHP] php-qmail-sendmail...cjk"
- Maybe in reply to: Tim Olsen: "[PHP] formating numbers to two decimal points - money - best ways"
- Next in thread: Richard Lynch: "[PHP] Re: formating numbers to two decimal points - money - best ways"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

