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 X-register to their decimal or octal equivalents. For example, to convert the octal number 326 to its decimal equivalent.
Keystrokes Display    
326
  326 _    
   
XEQ 
  XEQ _ _    
   
ALPHA DEC ALPHA 
  214.0000    
   
To convert the decimal number 8962 to its octal equivalent:
Keystrokes Display    
8962
  8,962 _    
   
XEQ 
  XEQ _ _    
   
ALPHA OCT ALPHA 
  21,402.0000    
   
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 X-register with the contents of the Y-register. 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 two-digit register address.
Paper Advance
This special function, ADV , is used in the HP-41C when you have the optional printer plugged into an input/output port on the HP-41C.
ADV causes the printer paper to advance one line, if the printer is plugged into the HP-41C. In the absence of a printer, ADV does noting. Please consult the owner’s handbook included with the printer for additional functions and information.