Changes

Jump to: navigation, search

Locomotive BASIC

646 bytes added, 20:01, 3 January 2019
/* Functions */
==== <code>ERR</code> ====
: ''BASIC 1.0 & 1.1''
: '''FUNCTION''': Reports the number of the last ERRor encountered. See the table below of error messages. In the example below you will see that ERRor number 8 is a <pre>'Line does not exist'</pre> error.
: '''Example''':
| 4 |DATA exhausted |A READ command has attempted to read beyond the end |
| | |of the last DATA. |
| 5 |Overflow |The result of an arithmetic operation has over- |
| | |flowed. This may be a floating point overflow, in |
| | |which case some operation has yielded a value |
| | |greater than 1.7E^38 (approx.). Alternatively, this |
| | |may be the result of a failed attempt to change a |
| | |floating point number to a 16 bit signed integer. |
| | | |
| | | |
| | | |
| | | |
205
edits