Comparison Tolerance: OCT
124
0
The value of this variable determines the maximum tolerance (how different the two
numbers must be to be considered unequal) when using any relational function and
at least one argument is a noninteger. For example, two numbers are considered un-
equal if the relative difference between the two numbers exceeds the comparison
tolerance value. The following illustration shows how the comparison tolerance
works with the relational functions:
Value of argument A
Real number line
The relationship of
any value (argument 6)
to argument A - ArB
- A>B
Note: The OCT function considers any number in decimal form a noninteger. For
example, 1000 is an integer and 1000. is a noninteger.
The value of the comparison tolerance variable also affects the floor and ceiling
functions. If an integer is in the range of the right argument plus or minus the
comparison tolerance, the integer is the result. For example:
[IC1’+. , 03
1-2 , 98
I.. 2 , 9 6
I‘ 3 1 0 3
2.98 + .03 = 3.01 (The integer 3 is in the range of
2.96 + .03 = 2.99
3.03 - -03 = 3 (The integer 3 is in the range of
3 2.98 ! .03.)
3
3 3.03 ? .03.)
3
rz. 04. 3.04 - .03 3.01
In a clear workspace, the comparison tolerance value is set to 1 E-13 (see
Chaptey 3 for an explanation of scaled representation).
Index Origin: 010
1
The value of this variable determines the index origin. The value can be either 0
or 1, which means that the first component of a vector or array is indexed with
a 0 or 1, depending on what the value is set to. In a clear workspace, the value
is set to 1.
The functions affected by index origin are indexing ([:I), index generator (I),
index of (I), roll (?I, deal (?I, grade up (41, and grade down (9).
1 2 3 1.1. t :I. 2 ;3 1.1.
,$& 3 1.1. 5
The index values represented by the
result start from 0 rather than 1.
0 :I. 2 3
Note: All other examples in this manual are shown with the index origin set to 1.
Printing Precision: 0 PP
The value of this variable determines the number of significant digits displayed for
decimal numbers and for integers with more than 10 digits. The value of this var-
iable does not affect the internal precision of the system. The value can be from
1 to 16. In a clear workspace, the value is set to 5. This means that the number
of significant digits displayed for decimal numbers or for integers with more than
10 digits is limited to 5 and scaled representation (see Chapter 3) is used (if re-
quired). For example:
t-Decimal Number Examples
I. 2 3 14.5 , 4)
11.2 3 4.5 6 7
1.2 3 4 6'
Five digits are displayed and the
least significant digit is rounded off.
:I. 2346
j. ~ 2 3 4.6 1.:: 5
123456 ,'7
125
Previous Page Next Page