Re: rounding...sort of
| From: | Justin French | Date: | Sat, 28 Dec 2002 17:12:19 +0000 |
| Subject: | Re: rounding...sort of | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-129508@lists.php.net to get a copy of this message | ||
php.net/floor
OR
<?
list($w,$d) = split('.','4.9');
echo $w;
?>
Justin French
on 28/12/02 8:49 PM, Peter Lavender (plaven@bigpond.net.au) wrote:
> Hi everyone,
>
> I have a nubmer: 4.1 but I only want the whole number 4, even if it's
> 4.9, so this rules out using round (Unless I missed a parameter).
>
> How could I do this.. I'm drawing a blank...
>
> Pete
>
>
>