Re: newbie - decimal places in arthimetic functions

From: Date: Fri, 13 Dec 2002 19:30:31 +0000
Subject: Re: newbie - decimal places in arthimetic functions
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-128198@lists.php.net to get a copy of this message
round it http://www.php.net/manual/en/function.round.php -- Scott Hurring Systems Programmer EAC Corporation scott (*) eac.com -- "Max Clark" <max@clarksys.com> wrote in message news:atdba1$2id$1@main.gmane.org... > 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 > > > >

« previous php.general (#128198) next »