I'm sorry, posted the wrong link.
It is the number_format() function.
http://www.php.net/number_format

----- Original Message -----
From: "Joseph W. Goff" <[EMAIL PROTECTED]>
To: "php-general" <[EMAIL PROTECTED]>; "Max Clark"
<[EMAIL PROTECTED]>
Sent: Friday, December 13, 2002 1:31 PM
Subject: Re: [PHP] newbie - decimal places in arthimetic functions


> You can use the format() function for this.
> http://www.php.net/format
>
> ----- Original Message -----
> From: "Max Clark" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Friday, December 13, 2002 1:10 PM
> Subject: [PHP] newbie - decimal places in arthimetic functions
>
>
> > Hi-
> >
> > How can I control the decimal places returned by an arthimetic function?
> >
> > I would like this divsion function to only return two decimal places
> > (rounded up).
> >
> > $calcsize = $value / $oneGig;
> >
> > Thanks in advance,
> > Max
> >
> >
> >
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to