Topic: APLX Help : Help on APL language : System Commands : )ORIGIN Index origin
[ Previous | Next | Contents | Index | APL Home ]

www.microapl.co.uk

)ORIGIN (number)


Followed by 0 or 1 it sets the index origin to 0 or 1. The index origin affects the origin (or base of the range) used for generating random numbers and indexes.

The index origin is normally set to 1.

On its own, without any following number, this command displays the current value of the index origin. (See also the system variable, ⎕IO, for a full discussion of Index Origin.)

             )ORIGIN
       IS 1
             )ORIGIN 0
       WAS 1
             ⎕IO
       0

Topic: APLX Help : Help on APL language : System Commands : )ORIGIN Index origin
[ Previous | Next | Contents | Index | APL Home ]