Re: Ive lost a zero somewhere

From: Date: Thu, 06 Nov 2003 07:02:21 +0000
Subject: Re: Ive lost a zero somewhere
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-168681@lists.php.net to get a copy of this message
You could use number_format.. $f = 25.50 * 3 $s = number_format($f,2,'.',NULL); Lang Richard Cook wrote: > I have a problem with the following > > when i multiply for example 25 . 50 * 3 i get 76 . 5 how would i get PHP > to recognise the last 0 ie make it 76 . 50 > > Any ideas? > > > Regards > > R

« previous php.general (#168681) next »