try:
$result = ((0.416/$time)*60)*60);
echo number_format($result, 2);
or
echo sprintf("%.2f", $result);
Andrew <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hello to you all!
> I am new to this list and I have a question that maybe someone can help
with
>
> In a script I am working on I have a math's equation :
>
> ((0.416 / $time) * 60) * 60)
>
> this out but a figure at goes to a about 10 decimal places I only want 2
> decimal places and just can not figure out how to do this
>
> Any ideas would be great
>
>
> Thanks
>
> Andrew
> Web Harper Graphics
> www.webharpergraphics.com
>
>
>
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]