Integer comparison: Difference between revisions
Content added Content deleted
Line 1,693: | Line 1,693: | ||
=={{header|FutureBasic}}== |
=={{header|FutureBasic}}== |
||
Note: Strictly speaking, it's preferable to use "==" when comparing integers as seen in this example. While the "=" sign will work as a comparison in most cases, technically it should be used for assignment, i.e. a = 3 when a is assigned the value of 3, as contrasted with a == 3, where the value of a is being compared with 3. FB will flag a warning when "==" is used to compare two single, doubles or floats since comparing real numbers can be inaccurate. |
Note: Strictly speaking, it's preferable to use "==" when comparing integers as seen in this example. While the "=" sign will work as a comparison in most cases, technically it should be used for assignment, i.e. a = 3 when a is assigned the value of 3, as contrasted with a == 3, where the value of a is being compared with 3. FB will flag a warning when "==" is used to compare two single, doubles or floats since comparing real numbers can be inaccurate. |
||
<lang futurebasic> |
<lang futurebasic>_window = 1 |
||
_window = 1 |
|||
begin enum 1 |
begin enum 1 |
||
_integer1Fld |
_integer1Fld |