Equal Numbers: Difference between revisions
Standartise description among all Equal X pages
(Adapted "How to determine if a number is valid, NaN or Inf?" article from old wiki) |
(Standartise description among all Equal X pages) Tags: Mobile edit Mobile web edit Advanced mobile edit |
||
| (3 intermediate revisions by 2 users not shown) | |||
| Line 8: | Line 8: | ||
}} | }} | ||
Outputs | Outputs [[True]] if both [[number]] inputs are equal, and False otherwise. | ||
[[File:Equal Numbers example.jpg|frameless|center|Example]] | [[File:Equal Numbers example.jpg|frameless|center|Example]] | ||
| Line 22: | Line 22: | ||
: [[File:precise-equals.jpg|thumb|none|Does not have the same issue as the example above]] | : [[File:precise-equals.jpg|thumb|none|Does not have the same issue as the example above]] | ||
* You can check whether a number is valid by checking whether it is equal to itself. <code>nan</code>, <code>inf</code> | * You can check whether a number is valid by checking whether it is equal to itself. <code>nan</code>, <code>inf</code> and <code>-inf</code> are not considered equal to themselves because they represent a set of numbers. | ||
: [[File:Equal_nan_inf.png|thumb|none|NaN and Infinity are not equal to themselves]] | : [[File:Equal_nan_inf.png|thumb|none|NaN and Infinity are not equal to themselves]] | ||
== Related == | |||
* [[Less Than]] | |||
* [[Greater Than]] | |||
* [[Equal Vectors]] | |||
* [[Equal Truths]] | |||
* [[Equal Objects]] | |||
[[Category:Blocks]] | [[Category:Blocks]] | ||