Today do information collection page encountered a strange problem, study for a long time to find the root cause of the problem, it is a bit strange indeed.(the younger brother often uses the C #, Java and other languages, PHP only occasionally in
PHP is one of the most commonly used back-end languages in Web sites, and is a type of system dynamic, weakly typed object-oriented programming language. can be embedded in HTML text, is one of the most popular web back-end languages, and can and
Php points are used to determine whether two floating point numbers are equal. Php determines whether two floating point numbers are equal. This article describes how php judges whether two floating point numbers are equal. Share it with you for
First, let's give a brief introduction to give you an intuitive understanding.
= Equality === identity equality
= When the value types on both sides are different, type conversion should be performed first and then comparison should be made.===
In php, the average is equal to the full expression. in simple terms, it is a simple equivalent. In other words, it is very precise. next I will introduce it to you.
In php, the average value is equal to the total value. in expression test, the
$a = = $b equals TRUE If the $a equals $b.
$a = = = $b congruent TRUE if $a equals $b, and they are of the same type. (introduced in PHP 4)
$a! = $b unequal to TRUE if $a is not equal to $b.
$a <> $b Not equal to TRUE if $a is not equivalent to $b.
$
PHP, a nested abbreviated name, is an abbreviation for the English Super Text preprocessing language (Php:hypertext preprocessor). PHP is an HTML embedded language, PHP and Microsoft's ASP quite a bit similar, is a server-side implementation of
PHP determines whether two floating-point numbers are equal, PHP points
This example describes how PHP determines whether two floating-point numbers are equal. Share to everyone for your reference. The specific analysis is as follows:
Because
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.