Symbol Execute: Difference between revisions

From NARS2000
Jump to navigationJump to search
(→‎Example: examples added)
m (→‎See Also: see also dieresis op)
Line 27: Line 27:


==See Also==
==See Also==
 
[[Symbol_Dieresis|Dieresis or Each]] Operator.
 
 
{{Language Toolbar}}
{{Language Toolbar}}
[[Category:Mouse Group 10|E]]
[[Category:Mouse Group 10|E]]
[[Category:Symbols|E]]
[[Category:Symbols|E]]

Revision as of 04:01, 12 April 2015

⍎ — Execute a string — Keystroke ?ALT+X — Character 0000

Usage

Examples

Valid uses of Execute(⍎) operator in conjunction with the Each(¨ or dieresis) operator:

         ⍎¨'99' '100'
   99 100
         A←'99'
         B←'100'
         ⍎¨A B
   99 100
         ⍎¨A '1' '2' '3'
   99 1 2 3
         ⍎¨ '99100'
   9 9 1 0 0
         ⍎¨A,B
   9 9 1 0 0

The Execute operator was primarily first designed to convert character representations of numbers into actual digital numbers with a floating point or integer computer storage format. It was specifically designed to generate an error message when a non-digit such as a letter(e.g. 'A' or 'B' was attempted to be converted to digital or computer binary format. In short, if you look at the code just above, you will see that yes Execute will convert char digits into numbers with the Each Operator.

The key to correctly using Execute is using the correct syntax to achieve your desired results, perhaps either

  1. Separating each argument into '1' '2' '3' '4' vectorized char arguments or
  2. First placing char data digits into vars(A and B) and then executing each without any quote chars.

See Also

Dieresis or Each Operator.

NARS 2000 Lang
Tool
Bar
+ - × ÷ * ! ? |
< = >
~ § π .. ,
/ \ ¨ .
_ ¯
Second Row i j k i j k l g p r v x