Changes

Jump to: navigation, search

Locomotive BASIC

566 bytes added, 09:51, 15 March 2019
/* Functions */
run
</pre>
==== <code><big>UNT (add<address expression>)</big></code> ====: ''BASIC 1.0 & 1.1'': '''FUNCTION''': Return an integer in the range -32768 to +32767 which is the twos-complement equivalent of the unsigned value of the <address expression>.
: Returns an integer(-32768 to 32767) which is the two's complement of add. : Example''Associated keywords''':CINT, FIX, INT, ROUND
: '''Example''':
<pre>
PRINT UNT(&FF66) - prints -154
</pre>
==== <code><big>UPPER$(<string expression>)</big></code> ====
: ''BASIC 1.0 & 1.1''
: '''FUNCTION''': Returns a new string expression which is a copy of the specified <string expression> but in which all alphabetic characters in the range A to Z are converted to upper case. The function is useful for processing input which may come in mixed upper / lower case.
==== <code>UPPER$(se)</code> ==== : Gives copy of se with all alphabetic characters in upper case.'''Associated keywords''': LOWER$
: '''Example''':
<pre>
10 CLS: a$="my, how you've grown!"
20 PRINT UPPER$(a$)
run
</pre>
==== <code>VAL(se)</code> ====
205
edits