Re: Problem with a if-statement

From: Date: Mon, 18 Oct 1999 10:33:55 +0000
Subject: Re: Problem with a if-statement
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-11734@lists.php.net to get a copy of this message
At 12:28 18-10-99 Monday , Kristian Nilsson wrote: Hiya Try: if ( (double) $variabel_1 == (double) $variabel_2 ) { Don't know it works.. but you can always try :) Greetz, Wico
Hi ! I have a very strange problem with a if-statement: if ( $variabel_1 == $variabel_2 ) { }else{ } Sometimes when the variables are (exactly) equal, the if-statement says the opposite. The variables are of the same type (double) and have the same numbers of decimals. If someone have a clue of what it can be, please let me know. Regards Kristian Nilsson -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe@lists.php.net For additional commands, e-mail: php-dev-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net


« previous php.dev (#11734) next »