Re: cutting off zeros >> 10.00 to 10

From: Date: Wed, 06 Feb 2002 15:03:11 +0000
Subject: Re: cutting off zeros >> 10.00 to 10
References: 1 2 3  Groups: php.db 
Request: Send a blank email to php-db+get-16557@lists.php.net to get a copy of this message
i still have some problems on typecasting my float-variable to a string variable. i used something like this: $n = $row["Points"]; settype($n,"string"); but the zeros are still there - as if $n is still handled as a float number not a string. with $n = 1.90 it's converted to 1.9 without problems... bye, Thomas Murphy

« previous php.db (#16557) next »