You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$v=30;
switch ($v) {
case30.0: // <===== this case matches with 30...break;
default:
...break;
case30: // <===== rather than this case matching with 30...break;
}
What is the problem?
30 and 30.0 are not considered equal under the new == equality operator.
Yikes. You're right, but there's also a much larger problem: the equality page is hideously out of date. I'm going to update it ASAP then update the switch page accordingly.
Please complete the information below:
Where is the problem?
What is the problem?
30 and 30.0 are not considered equal under the new
==
equality operator.Please don't change anything below this point.
The text was updated successfully, but these errors were encountered: