Re: divide

From: Date: Wed, 10 Sep 2003 14:44:12 +0000
Subject: Re: divide
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-162176@lists.php.net to get a copy of this message
From: "phpu" <phpu@go.ro> > I'm new in php and i've got allready a problem. > I wanna divide 2 numbers and the result to be an integer separated by comma. For example: > $number1=10000000; > $number2=17; > $result=$number1 / $number2; > In this case the result is 588235.29411764.... > And I wanna the result to be like this 588,235 I don't know if this is old or not, but I just got it. Anyhow, use number_format() ---John Holmes...

« previous php.general (#162176) next »