RE: [PHP-DB] currency formating

2001-12-31 Thread Shooter

U could use round. 
if u looked @ the php.net website.  searched you would of found it. 
heres the url http://www.php.net/manual/en/function.round.php

an example is below.
basically. its 

round($number,$deciminal_places);

EXAMPLE
$foo = round(1.95583, 2);  // $foo == 1.96

Shooter


Webmaster [EMAIL PROTECTED] wrote in message 
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 I have the following
 
 $number=47.7
 
 I need this to be = 47.70
 
 it must include the 2 didgets after the . how can i accomplish this
 
 
 
 
 -- 
 PHP Database 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]
 



Re: [PHP-DB] currency formating

2001-12-31 Thread Billy Harvey

On Tue, 2002-01-01 at 00:08, Webmaster wrote:
 Yea i have read that but did not think it was what i needed considering it
 is for an automated billing system and the customer may not like it if they
 are charged and extra .50 cents or so every month. Their has got to me
 another alternative.

Well, round wouldn't do that, but what you're looking for is
number_format().

Billy


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




Re: [PHP-DB] currency formating

2001-12-31 Thread CrossWalkCentral

That did it thanks allot Bill.
if you need a support tickett system made in php let me know.

thanks again and happy new year to you all.

Billy Harvey [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 On Tue, 2002-01-01 at 00:08, Webmaster wrote:
  Yea i have read that but did not think it was what i needed considering
it
  is for an automated billing system and the customer may not like it if
they
  are charged and extra .50 cents or so every month. Their has got to me
  another alternative.

 Well, round wouldn't do that, but what you're looking for is
 number_format().

 Billy




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