note 105623 deleted from language.types.float by danbrown

From: Date: Thu, 01 Sep 2011 20:24:54 +0000
Subject: note 105623 deleted from language.types.float by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-182888@lists.php.net to get a copy of this message
Note Submitter: stm555 at hotmail dot com ---- in response to maxiumswarp comparison code .. wouldn't it be simpler to just cast to string than format the numbers? ie, if ( (string)$floatValueA != (string)$floatValueB ) { //do stuff }

« previous php.notes (#182888) next »