Enter RPN

Files in dm32/pct-total/ of trunk
Login

Files in dm32/pct-total/ of trunk

Files in directory dm32/pct-total from the latest check-in of branch trunk


Description

Given a “partial” value, calculate the percentage of a (presumably larger) total.

Usage

total ENTER partial XEQ T

Resources

Matches the behavior of the HP-12C %T key:

Compatibility

Written for the SwissMicros DM32, but trivially converted to the HP-11C, HP-15C, and HP-16C by changing the starting label to something in scope. (I gave it T for mnemonic reasons.)

The program requires trivial modifications to work on an HP-12C, but why put up with its more primitive programming model when it gives you a perfectly good %T key?

See Also

Motivation here, plus other variants with other tradeoffs, including two for the HP-20S.