Check out php.net/round and it's relatives

--Toby

LDL Enterprise wrote:
> 
> I am having trouble getting this peice of code to only show 2 decimal
> places.
> 
> echo $cart->cart_total($table, $scid) * .0625;
> 
> The class returns 100.50 and the above code returns 6.28125
> 
> Any help taking the 125 off would be appreciated. Thanks.
> 
>  _     __    _
> | |   |   \ | |
> | |__ | |> || |__
> |____||___/ |____|
> 
> Larry L.
> [EMAIL PROTECTED]
> www.ldlenterprise.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]

-- 
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]

Reply via email to