logo       

Re: [PHP-INSTALL] Limiting the decimal value: msg#00075

php.install

Subject: Re: [PHP-INSTALL] Limiting the decimal value

Scott Hamm wrote:

How do I limit the decimal value into 2 places?


<? If ($ProdActu <> 0)
{
$Eff = ($ProdActu/$ProdProj)*100;
}
?>


See number_format() in the PHP manual.

Janet


--
Janet Valade -- janet.valade.com



<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise