Re: [SMARTY-GENERAL] Re: Rounding
| From: | Monte Ohrt | Date: | Wed, 03 Apr 2002 14:27:43 +0000 |
| Subject: | Re: [SMARTY-GENERAL] Re: Rounding | ||
| References: | 1 2 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-3457@lists.php.net to get a copy of this message | ||
You'd probably get a better answer on the php general mailing list, since this is a function of PHP.
Ron wrote:
Figured it out $KMU = ($EURO * 1.95583); $KM = round ($KMU , 4); 4 being the number of deciaml places Not that it is important to me really, since I am not that advanced, but by doing this does it change the variable type to "floating point"????? I think it does am I right??? "Ron" <allenr@fwd.areur.army.mil> wrote in message news:20020403072539.63411.qmail@pb1.pair.com...-- Monte Ohrt <monte@ispi.net> Director of Technology, ispi Inc.How would I go about rounding a number to give me more than one decimal spot? $KM = ($EURO * 1.95583); (round($KM = ($EURO * 1.95583)); will give me one decimal.. What do I need to do for 3 or 4 decimal spots! Thanks