Re: rounding...sort of

From: Date: Sat, 28 Dec 2002 21:49:57 +0000
Subject: Re: rounding...sort of
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-129535@lists.php.net to get a copy of this message
Use explode() please On Sun, 29 Dec 2002, Justin French wrote: > 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 > > > > > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php >

« previous php.general (#129535) next »