Re: Rounding
| From: | Ron | Date: | Wed, 03 Apr 2002 08:29:55 +0000 |
| Subject: | Re: Rounding | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-3451@lists.php.net to get a copy of this message | ||
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...
> 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
>
>