RE: [PHP-WIN] displaying neat and tidy currency notation?
| From: | Wagner, Aaron | Date: | Fri, 03 Dec 2004 16:40:39 +0000 |
| Subject: | RE: [PHP-WIN] displaying neat and tidy currency notation? | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-25114@lists.php.net to get a copy of this message | ||
http://us2.php.net/manual/en/function.number-format.php
use number_format function.
string number_format ( float number [, int decimals] ) string number_format ( float number, int
decimals, string dec_point, string thousands_sep )
> -----Original Message-----
> From: George Pitcher [mailto:george.pitcher@ingenta.com]
> Sent: December 03, 2004 10:49
> To: php-windows@lists.php.net
> Subject: [PHP-WIN] displaying neat and tidy currency notation?
>
>
> Hi,
>
> I want to be able to display the results of some calculations
> as currency
> such as £25.50, but round($var,2) produces £25.5.
>
> I've tried writing my own function but that just fouled up
> the calculation.
>
> Any tips or suggestions?
>
> Cheers
>
> George in Oxford
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>