Re: currency formating

From: Date: Tue, 01 Jan 2002 05:08:50 +0000
Subject: Re: currency formating
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-15290@lists.php.net to get a copy of this message
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. "Shooter" <gendouikari@optushome.com.au> wrote in message news:002f01c19242$6d2f5580$3701a8c0@lan... 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 <webmaster@crosswalkcentral.net> wrote in message news:20020101020045.21918.qmail@pb1.pair.com... > 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: php-db-unsubscribe@lists.php.net > For additional commands, e-mail: php-db-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.db (#15290) next »