Code Comments
Programming Forum and web based access to our favorite programming groups.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
Post Follow-up to this message
Show a Printable Version
Email This Page to Someone!
Receive updates to this thread
Powered by vBulletin
Copyright 2000-2006 Jelsoft Enterprises Limited.