
Section 6: Functions continue105


Decimal/Octal Conversions


The OCT (decimal to octal) and
DEC (octal to decimal) functions allow
you to convert numbers that are in the Xregister to their decimal or octal
equivalents. For example, to convert the octal number 326 to its decimal
equivalent.




To convert the decimal number 8962 to its octal equivalent:




If you attempt to use OCT when x is noninteger or the
absolute value of x is greater than 1,073,741,823 (decimal), the display will
show DATA ERROR. If you attempt
to use DEC when x is noninteger or the number to be
converted contains an 8 or 9, the display will show
DATA ERROR. The largest octal
number that can be converted is 7,777,777,777.


Exchanging X and Any Register


Earlier
in this handbook you learned how
X Y exchanges the contents of the
Xregister with the contents of the Yregister. Using
X<> you can exchange the contents of X with
the contents of any storage register, including the rest of the stack (T, Z, and
Y), and LAST X.


To exchange X with another stack register or LAST X, execute
X<> , press
· (decimal point) to specify
the desired register (T, Z, Y, X, or L for LAST X).


To exchange X with any numbered register form 00 through 99, simply execute
X<> and supply the twodigit register address.


Paper Advance


This special function, ADV , is used in the
HP41C when you have the optional printer plugged into an input/output port on
the HP41C.


ADV causes the printer paper to advance one line, if
the printer is plugged into the HP41C. In the absence of a printer,
ADV does noting. Please consult the owner’s
handbook included with the printer for additional functions and
information.
