MathU™ RPN 2.2 for iPhone
Documentation
< [PREV CHAPTER] [HOME] [NEXT CHAPTER] >
Number Base Functions
MathU RPN can display and compute with numbers in hexadecimal (base 16), octal (base 8), and binary (base 2) format as well as the default decimal (base 10) format. Non-decimal values are displayed with a subscript following them indicating the number base and subscripts that indicate the bit position. The number base functions honor the wordsize set in the preference screen. You can also choose to display the numbers with leading zeros via the preferences screen.
| hexadecimal display | |
| octal display | |
| binary display |
When one of the non-decimal bases is chosen, the keypad changes to reveal the number base functions and the A-F hex digits.

The functions HEX, OCT, BIN, and DEC convert values between bases and set the number base for further calculations and input.
Values outside the wordsize preference are wrapped (that is, the excess most significant bits are dropped) and are converted to an integer. The display will automatically switch to a smaller font when large numbers are viewed in oct or bin format. Large binary numbers may wrap on the display as well.
Modular Functions
A few functions behave differently when a non-decimal number base is chosen:
The other functions on the calculator can be applied to the non-decimal numbers. The result will be displayed as an integer even though the value may contain a fractional part. However, if the result has more than 48 bits, the number will be displayed in decimal. Simply reapply the conversion routine to wrap and truncate the value to the wordsize.

