diff options
| author | Paul Buetow <paul@buetow.org> | 2026-03-20 21:55:57 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-03-20 21:55:57 +0200 |
| commit | 15b87ea17d96856d3ed9f2dbfbc80343b01b78df (patch) | |
| tree | cc5b1fbbb722ddbab49450d308d6945d99f3c01c /README.md | |
| parent | 9a282b74a179517c009f855c14d3fa63ad805871 (diff) | |
cmd/perc/main.go: try RPN parsing before percentage calculation in command mode
- Bare expressions like '1 2 +' now work without 'calc' prefix
- Assignment format 'name value =' requires 'calc' subcommand prefix
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -99,6 +99,10 @@ perc calc x 5 = x x + # x + x = 10 perc calc pi 3.14159 = pi 2 * # 2 * π # → 6.28318 + +# Note: Variable assignment only works with calc/rpn subcommand: +# perc calc x 5 = x x + (works) +# perc x 5 = (won't work in bare mode - use "perc calc x 5 =") ``` #### Variable Management |
