php-general | 2001092
Date: 09/19/01
- Next message: mydata: "[PHP] how to use the function "strtotime""
- Previous message: David Robley: "Re: [PHP] Newbie Question: Array Comparison ---"
- In reply to: Kurth Bemis: "[PHP] 2 decimal places"
- Next in thread: Christian Dechery: "Re: [PHP] 2 decimal places"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
number_format($variable, 2, '.', '')
something like that i believe
----- Original Message -----
From: "Kurth Bemis" <kurth <email protected>>
To: <php-general <email protected>>
Sent: Wednesday, September 19, 2001 7:22 PM
Subject: [PHP] 2 decimal places
> 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?
>
> ~kurth
>
>
> --
> 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>
>
-- 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: mydata: "[PHP] how to use the function "strtotime""
- Previous message: David Robley: "Re: [PHP] Newbie Question: Array Comparison ---"
- In reply to: Kurth Bemis: "[PHP] 2 decimal places"
- Next in thread: Christian Dechery: "Re: [PHP] 2 decimal places"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

