Re: money format

From: Date: Mon, 13 Aug 2001 03:31:43 +0000
Subject: Re: money format
References: 1 2  Groups: php.windows 
Request: Send a blank email to php-windows+get-8795@lists.php.net to get a copy of this message
much easier to use: number_format($number,2); "Jason Brooke" <jb@qgl.org> wrote in message news:019201c123a6$d4d69320$58c2a4cb@co3040297a... > > does anyone know > > how to convert a > > number like 324.42932 to 324.43 format > > > > is there any special functions in php for this ? > > There sure are, did you check the manual? > http://www.php.net/manual/en/ref.strings.php > > You can also do it with the % operator instead of using a function if you > want. > http://www.php.net/manual/en/language.operators.php > > jason > > > > >

« previous php.windows (#8795) next »