Files in directory dm32/pct-total from the latest check-in of branch trunk
- pct-total.d32
- README.md
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:
- X: partial value on input, percent of total on output
- Y: total on input, retained on output for reuse in subsequent calculations
- variables: none
- flags: none
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.