RPN calculator

License Crates.io Version Dependencies

A basic command-line RPN calculator. It's similar to DC but with a few differences.

Numbers are stored as f64 rather than arbitrary-precision integers. This is simpler but sometimes less precise.

Command List

Register Commands

Registers are indexed by their UTF-8 codepoint, which can be any single character. They are their own fully-fledged, freestanding stacks.

Usage Examples

```

2 2+v 4 c 2~V 0: -2 16i c2 V 0: 2 c 0c2 V 0: 194 0a i c 123 sl V &lV 0: 123 456 sl &l+ Ll v 579 c 1 2 3 4 V 3: 1 2: 2 1: 3 0: 4 3RV 3: 1 2: 3 1: 4 0: 2 3~RV 3: 1 2: 2 1: 3 0: 4 c 0 0 0 0 zp 4 c 1 0 / p inf ```