RE: [PHP] More math fun

From: Date: Tue, 12 Aug 2008 20:44:40 +0000
Subject: RE: [PHP] More math fun
References: 1 2 3 4  Groups: php.general 
Request: Send a blank email to php-general+get-278001@lists.php.net to get a copy of this message
[snip] string(5) "15.22" float(15.22) You're right....*smacks forehead*. Sometimes this whole forest and trees thing kills me. [/snip] settype($balanceTest, "float") had no effect [/snip] $diff = round(abs($balanceTest), 2) - round(abs($oldLineArray[16]), 2); Works? Does round convert the string to a float?

« previous php.general (#278001) next »