The Museum of HP Calculators


Modulo for the HP-25

This program is by Xavier A. Brazil and is used here by permission.

This program is supplied without representation or warranty of any kind. Xavier A. Brazil and The Museum of HP Calculators therefore assume no responsibility and shall have no liability, consequential or otherwise, of any kind arising from the use of this program material or any part thereof.

Overview

These are just a few keystrokes that you may use without programming to calculate the modulo- of two numbers, showing how the stack works:

Number1, ENTER↑, Number2, ENTER↑, ENTER↑, R↓, R↓, ÷, g FRAC, ×

This can be also a (very) short program:

INSTRUCTIONS
1. In PRGM Mode, type in the routine;
2. In RUN Mode, type in the 1st number, press ENTER;
3. Press the 2nd number, then press R/S.

Note: the program will not verify the validity of the numbers you entered. EXAMPLE

45
ENTER
6
R/S → 3

Listing

Step Code   Instruction

01   31     ENTER↑
02   31     ENTER↑
03   22     R↓
04   22     R↓
05   71     ÷
******************************
You may type a 'PAUSE' 
instruction here to know the 
result of the division.
******************************
06   15 01  g Frac
07   61     ×

Go back to the software library
Go back to the main exhibit hall